# fasty **Repository Path**: sinceity/fasty ## Basic Information - **Project Name**: fasty - **Description**: 一个极快的 JavaScript 模板引擎,支持浏览器和 Node。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 26 - **Created**: 2022-05-26 - **Last Updated**: 2022-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Fasty - a faster javascript templating engine. Fasty is a simple and super fast templating engine that use a template rendering speed by a special cache solution(Original), hence achieving runtime performance which is close to the limits of JavaScript. At the same time, it supports both NodeJS and browser. >Fasty Rendering faster is 100+ times more than other JavaScript engines. ## Usage ```javascript var fasty = new Fasty(); fasty.render(template,data); ``` ## Fasty grammar ### output ``` // #1 {{var x = 100}} {{x}} // #2 {{"hello world"}} ``` ### if-else ``` {{~if (x == 100)}} {{~else if(x == 200)}} {{~else}} {{~end}} ``` ### for-loop ``` // #1 {{~for (item of array)}} {{~end}} // #2 {{~for (item in array)}} {{~end}} // #3 {{~for (key of Object.keys(item))}} {{~end}} // #4 {{~for (var x = i;x < 100;x++)}} {{~end}} ``` ## Author - Micahel (fuhai999@gmail.com) - 小码科技 - Wechat: wx198819880 ## License Fasty is licensed under the MIT License.