Skip to content

Consider adding optimization #48

@wmertens

Description

@wmertens

In https://github.com/gradus/coffeecup/blob/master/src/compiler.coffee there's an implementation of how to walk the ([ck]offee|tea)[ck]up templates and optimize the function calls into plain HTML. Anything that's static is converted to strings and only the parameters remain, greatly improving the time needed to run the template.

This is useful when you're using client-side re-rendering, like React does.

(Incidentally, it's not a great leap from teacup to generating React.JS code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions