Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/bemtoPublic

Templating based on block/element names? #50

Open
@kizu

Description

@kizu

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp