Skip to content

Compiled templates #1968

@calvinmetcalf

Description

@calvinmetcalf

the L.Utils.template function currently takes a template and a string and returns the result, switching it to a compiled version based on @padolsey's example should increase the speed of the function.

For backwards compatibility L.Utils.template(url) could return a template function and L.Utils.template(url,data) returns templated string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions