Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voltraco/mineral
A very small jade-like template engine
https://github.com/voltraco/mineral
compiler jade pug template-language templates templating
Last synced: 27 days ago
JSON representation
A very small jade-like template engine
- Host: GitHub
- URL: https://github.com/voltraco/mineral
- Owner: voltraco
- License: mit
- Created: 2016-03-16T12:51:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T20:52:30.000Z (over 7 years ago)
- Last Synced: 2024-09-28T08:42:34.567Z (about 1 month ago)
- Topics: compiler, jade, pug, template-language, templates, templating
- Language: JavaScript
- Homepage: http://voltraco.github.io/mineral/
- Size: 141 KB
- Stars: 37
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE
Awesome Lists containing this project
README
ABOUT
Mineral is a language that compiles to markup or dom. It's similar to Jade (aka
Pug). Its goal is to be much smaller and simpler than pug, and integrate well
with modern client side frameworks.DOCS
http://voltraco.github.io/mineral/INSTALL
npm i mineralCLI
Watch and compile mineral files https://github.com/voltraco/mineral-cliWEBPACK
Use https://github.com/voltraco/mineral-loader to read mineral files and parse
them into trees. This is easy, just `require('./file.min')`.BROWSERIFY
For browserify, use the individual components.const tree = require('mineral/parser')(string)
const el = require('mineral/compilers/dom')(tree)