-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example project with template nesting #121
Comments
I am also interested in this. I'm planning of using "plates" in my own templating language which should support data binding on top. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like the idea of plates but I'm not sure how it would work in a project with a lot of partial templates that have to include other templates. Note: I'd be thinking of using it on its own, not as part of flatiron.
Let's say there's a template which has an element which contains another partial template which includes more, etc. Imagine there are a lot of top-level templates like this. How would someone manage this and the mappings needed? Each top-level template would need a specific permutation of mappings & partial injections applied to it. Or in other words, each partial would need its own mapping but this would be have to be managed somehow.
Also, each template may of course use different names for vars. So if one template includes another, the first mapping needs to converted into the second.
With a DSL (let's say with swig), you kind of get this for free; for example:
a.swig.html
b.swig.html
And then rendering
a.swig.html
with{hello: 'a'}
will give :Are there any example projects out there that would show how this should be done?
The text was updated successfully, but these errors were encountered: