We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
is it possible to declare "block" inside an attribute?
E.g. meta( name='description' content='block descr' )
Or another elegant solution to inject content into attributes of templates?
The text was updated successfully, but these errors were encountered:
Are you using mixins or extends?
extends
Sorry, something went wrong.
Extends.
Not currently, It's an interesting idea that might not be totally impossible in v2. What you can do currently is something like:
block variables - var descr = 'default description'; meta(name='description' content=descr)
Then in the child template:
extends ./layout.jade block variables - var descr = 'my description';
Nice workaround.
I tried variables before but forgot to declare it inside block.
Thank you!
No branches or pull requests
Hi,
is it possible to declare "block" inside an attribute?
E.g. meta( name='description' content='block descr' )
Or another elegant solution to inject content into attributes of templates?
The text was updated successfully, but these errors were encountered: