- Notifications
You must be signed in to change notification settings - Fork66
Open
Description
Is it possible to add a way to declare templates based on block/elements' names and modifiers?
Jade already have a way to call mixins using an interpolation:
+#{'b'}.block +#{'e'}.element
Would this be enough to allow defining custom templates, so things like this:
mixinbemto_block()+b.block-wrapper+b.block+b.elementblock+b.block="Whatever"
would be treated as:
+b.block-wrapper+b.block+b.element="Whatever"
One of the problems is how to stop it being recursive, when the+b.block
can be used insidebemto_block
mixin?
Metadata
Metadata
Assignees
Labels
No labels