1.2.1 • Published 4 years ago

sume v1.2.1

Weekly downloads
30
License
MIT
Repository
github
Last release
4 years ago

Sume.js Build Status

Low effort DOM templating for the frontend


CDN

jsDelivr


Usage

const Sume = require("sume");

let source = `
    <a href="{{ url }}">{{ title }}</a>

    <span>
        {{ content }}

        Escaped delimiters: \\{{ hello! }}
    </span>
`;

let template = Sume.compile(source);
let context = {
    url: "https://github.com/jackdalton2/Sume.js",
    title: "Sume.js",
    content: "Low effort DOM templating for the frontend"
};

let renderedElement = template(context);

renderedElement (String):

<a href="https://github.com/jackdalton2/Sume.js/">Sume.js</a>

<span>
    Low effort DOM templating for the frontend

    Escaped delimiters: {{ hello! }}
</span>
1.2.1

4 years ago

1.2.0

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago