Skip to content

More optimization chances on class, id and data attributes #28

@eagletmt

Description

@eagletmt

%span{class: func(x)} is currently compiled into code using Faml::AttributeBuilder.
But we could inline it like dynamic attributes.

Before:

_buf << ("<span".freeze); _buf << (::Faml::AttributeBuilder.build("'", true, class: x)); _buf << ("></span>\n".freeze);

After:

_buf << ("<span".freeze); _buf << do_something_with_class('span', x); _buf << ("></span>\n".freeze);

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