Create HTML modules (building blocks) that look like new HTML tags. Use modules to form other modules. Easily pass parameters from multiple sources to modules and inner modules. Use as a drop-in templating language to any web framework.
- Templates look like HTML
- Easily build large templates out of small ones
- Less logic than "logicless" templates. It doesn't turn HTML into a programming language.
- Use stand-alone or with a framework, e.g. backbone, meteor, etc.
- Use "demo" elements to preview a design--they go away when compiled for production.
- Pass-through parameters are easier than "partials." Documentation and Example
- Download modest-preview.js.
<script src="modest-preview.js"></script>in the
headof your html file (after jquery).
Compile to Production*
- Install node.js (once)
npm install -g modest(once)
- Go into your project directory
modestOR use grunt-modest
To compile to production, you need:
- A C++ compiler
See the installation instructions for node-gyp for more information.
Change directories into your local clone and type
to get the node.js dependencies. After you make your changes, make sure your tests are run by test/all.js. The tests use vows. Make sure the tests still pass by running
Permission is granted under the MIT license.