Miss any of our Open RFC calls?Watch the recordings here! »

sweets-toffee-nuts

0.9.1 • Public • Published

Sweets

Flexible declarative web framework for real-time projects

Toffee with nuts

Adds cache busting tag

Tags

cachebust

Looks for file matching pattern filename*.ext and returns full url to this file. If no matches found returns url to file.

{% cachebust filepath, baseurl %}

Exmaple:

{% cahebust 'static/app.js', '/static' %}

Settings

this.template = {
    sweet: "toffee",
    extensions: ["nuts"] // <- add this
    options: {
        path: path.join(this.root, "templates")
    }
};

Install

npm i [email protected]

Version

0.9.1

License

MIT

Last publish

Collaborators

  • avatar