Is there any documentation on the template system? #670
Replies: 1 comment
-
I can't fully answer your question, as I don't know exactly how everything works. |
Beta Was this translation helpful? Give feedback.
-
I can't fully answer your question, as I don't know exactly how everything works. |
Beta Was this translation helpful? Give feedback.
-
I've been making some small modifications to the client now and I'm sometimes left scratching my head on how the templates work.
So far I've been able to find everything I need, one way or another, from looking through the existing templates, but the understanding I'm getting from that is limited.
For example:
<%= ctx.makeFlexboxAlign() %>
seems to "return" the result into the HTML.Yet here
<input type='text' id='merge-id-<%-ctx.name %>' pattern='^[0-9]+$' value='<%- ctx.post ? ctx.post.id : '' %>'/>
the<%-
seems to also "return" the result into the HTML...Now I'm confused why there's two ways of doing that.
Something that'd be really interesting would be debugging, because often I manage to break everything in a way that I get a 0 byte app.min.js and NO error message as to WHAT I broke...
Beta Was this translation helpful? Give feedback.
All reactions