{"repo":"ad-si/shaven","free":true,"listed":false,"github":"https://github.com/ad-si/shaven","clone":"git clone https://github.com/ad-si/shaven.git","description":"DOM building utility & Template engine based on JsonML + syntax sugar","language":"JavaScript","stars":74,"topics":["jsonml","dom","template-engine","template","svg","html","html2shaven"],"license":null,"category":"cli-tools","readme_excerpt":"Shaven [![Build Status][build-status]](https://travis-ci.org/ad-si/shaven) A DOM building utility and Template engine based on JsonML with syntax sugar. Checkout [shaven.ad-si.com] for extensive documentation. [build-status]: https://travis-ci.org/ad-si/shaven.svg [shaven.ad-si.com]: https://shaven.ad-si.com Example compiles to In order to convert HTML fragments to shaven arrays, the included html2shaven CLI tool can be used. Features - Syntax Sugar for ids, classes and variable caching - Support for namespaces. (Lets you build SVGs and other XML based languages) - Callback functions on elements - Returns a Object containing the root element and the elements with an id Advantages - Leverage the full power of JavaScript in your templates. = No need to learn a new language! - Directly integrable into JavaScript files - Works in front- and backend environment - Templates normally tend to get more complicated with the number of variables as they need to get escaped in some way. With Shaven it's exactly the opposite. As variables are native to Shaven the templates get simpler with an increasing number of variables. - Shaven templates can be easily build with every major programming language and their existing JSON/YAML tools. Installation Check out [shaven.ad-si.com] for a detailed description of how to install shaven in other environments. Browser Support - Firefox: 20+ - Opera: 21+ - Chrome: 34+ - Safari: 9+ (Does not correctly escape HTML strings in attributes) - IE: ? (Probabl","default_branch":null,"files":null,"tree":[],"storefront":"/r/ad-si","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ad-si/shaven/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."}