# engine7 **Repository Path**: zhunengfei/engine7 ## Basic Information - **Project Name**: engine7 - **Description**: 可嵌套的JS模版引擎,支持JSON API 渲染 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://github.com/jindong5210/engine7 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2017-03-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Engine7 ========= JavaScript template engine based on Template7 with syntax similar to Handlebars. * Render a template with JSON API. * Nested template supported. * Template7 extension. ## Getting Started * Required [jQuery](http://jquery.com/) and [Template7](http://www.idangero.us/template7/) * Installation ``` ``` * Define templates ``` ``` ``` ``` * Define JSON APIs ``` { "id" : 1, "name" : "Jeffrey", "age" : 33, "address" : "Dalian Software Park, China", "mail" : "jindong05@126.com" } ``` ``` [ { "id" : 1, "name" : "javascript" }, { "id" : 2, "name" : "java" } ] ``` * Render in html ```
``` ## Reference ### Attributes * #### data-tpl-id Define a template, always be used on a script tag. ```