-
Notifications
You must be signed in to change notification settings - Fork 13
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
Default for contentblock
#19
Comments
Thanks for the suggestion @k-funk -- this does seem like a common use case. I wonder if it makes sense to have
I wonder though if Liquid supports having an optional closing or not -- if it doesn't maybe we could all it something like
Thoughts? |
The first example is decent. Personally I find that jinja/django is the simplest pattern for implementing a default block: http://jinja.pocoo.org/docs/dev/templates/#template-inheritance |
Note to self, we can probably get the first one done by using the approach described here http://stackoverflow.com/questions/19868301/liquid-custom-tag-block-tag-with-optional-closing-tag Also, could maybe add an |
This is a very common patter in my project:
Seems necessarily bulky just to have a default block that sub-layouts can overwrite. Is this a problem you've considered solving, or do you have an alternative way to write it?
The text was updated successfully, but these errors were encountered: