# squirrelly **Repository Path**: mirrors_opencollective/squirrelly ## Basic Information - **Project Name**: squirrelly - **Description**: Modern, super fast, and configurable JS template engine that works with ES5 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # squirrelly [](https://travis-ci.org/nebrelbug/squirrelly) [](https://david-dm.org/nebrelbug/squirrelly) [](https://www.npmjs.com/package/squirrelly) [](https://www.codacy.com/app/nebrelbug/squirrelly?utm_source=github.com&utm_medium=referral&utm_content=nebrelbug/squirrelly&utm_campaign=Badge_Grade)[](https://standardjs.com) [](https://gitter.im/squirrellyjs/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://opencollective.com/squirrelly) **Summary** Squirrelly is a modern, configurable, and blazing fast template engine implemented in JavaScript. It works out of the box with ExpressJS and weighs only **2.6KB gzipped**. ## Why Squirrelly? ### Features: - Custom helpers - Custom filters - Conditionals - Loops - Custom delimeters - Precompilation - Partials - Writing JavaScript inside the template - Comments - Caching - Just look at the performance benchmarks [here](https://github.com/nebrelbug/squirrelly-benchmarks) ## Docs We know nobody reads through the long and boring documentation in the ReadMe anyway, so head over to the documentation website: [https://squirrelly.js.org](https://squirrelly.js.org) ## Examples ### Simple Template ``` var myTemplate = "
My favorite kind of cake is: {{favoriteCake}}
" Sqrl.Render(myTemplate, {favoriteCake: 'Chocolate!'}) // Returns: 'My favorite kind of cake is: Chocolate!
``` ### Conditionals ``` {{if(options.somevalue === 1)}} Display this {{#else}} Display this {{/if}} ``` ### Loops ``` {{each(options.somearray)}} Display this The current array element is {{@this}} The current index is {{@index}} {{/each}} ``` ## Tests The default test can be run with `npm test`, and it just checks that compiling and rendering a simple template results in the correct string. ## Contributing We love contributions from the community! Contributions are accepted using GitHub pull requests; for more information, see [GitHub documentation - Creating a pull request](https://help.github.com/articles/creating-a-pull-request/). For a good pull request, we ask you provide the following: 1. Include a clear description of your pull request in the description with the basic "what" and "why"s for the request. 2. The test should pass. 3. The pull request should include tests for the change. A new feature should have tests for the new feature and bug fixes should include a test that fails without the corresponding code change and passes after they are applied. 4. If the pull request is a new feature, please include appropriate documentation in the `README.md` file as well. 5. Keep a consistent coding style. ## Contributors [Ben Gubler](https://github.com/nebrelbug) ## License Squirrelly is licensed under the MIT license.