{"repo":"ChangbaFE/cbT","free":true,"listed":false,"github":"https://github.com/ChangbaFE/cbT","clone":"git clone https://github.com/ChangbaFE/cbT.git","description":"A Node.js server-side template engine that supports multi-level template inheritance.","language":"JavaScript","stars":13,"topics":["html-template","node-template","template","template-engine","template-inheritance"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"cbT.js A Node.js server-side template engine that supports multi-level template inheritance. \\ English [中文 \\] Table of Contents Installation Features Example Usage Options cbT.leftDelimiter cbT.rightDelimiter cbT.basePath cbT.cachePath cbT.defaultExtName API cbT.compile(str) cbT.compileFile(filename, options, callback) cbT.render(str, data) cbT.renderFile(filename, data, options, callback) cbT.getInstance() Template Syntax Template Inheritance (Layout) extends tag block tag parent tag child tag slot tag call tag use tag Example Other Syntax Escaped variable output Unescaped variable output URL-escaped variable output HTML attribute escaped variable output Escaped array output Money formatting Content truncation URL protocol adaptation Escaped function return value output Unescaped function return value output Variable definition Array iteration Conditional output Sub-template definition Sub-template invocation Installation Features Supports template inheritance (Layout) Modular templates Flexible template syntax Example Usage Options cbT.leftDelimiter Defines the left delimiter, default value: cbT.basePath Defines the root directory for reading template files, default value is an empty string. For example, if you want to use /my/template as the root directory for all templates, set cbT.basePath = '/my/template' cbT.cachePath Template cache directory, default value is the system temporary directory. cbT.defaultExtName Default extension for template files, default value is .htm","default_branch":null,"files":null,"tree":[],"storefront":"/r/ChangbaFE","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ChangbaFE/cbT/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}