This is a Jade to HTML compiler for the Mimosa build tool. This module is for use with Mimosa
For more information regarding Mimosa, see http://mimosa.io
'jade-static' to your list of modules. That's all!
Mimosa will install the module for you when you start
mimosa watch or
After that, start creating your .jade files in the
app/template folder. This files will be converted to HTML strings
which are available on client-side through the
templates object — the same as with other templating modules.
This module will compile Jade files to HTML during
mimosa watch and
This module utilizes all of the built-in template behavior that comes with Mimosa's basic template compiler.
See the mimosa website for more information about how templates are treated
or check out the various
template configuration options.
jade: lib: undefined extensions: [ "jade" ] context: null
lib: You may want to use this module but may not be ready to use the latest version of Jade. Using the
libproperty you can provide a specific version of Jade if the one being used by this module isn't to your liking. To provide a specific version, you must have it
npm installed into your project and then provide it to
lib. For instance:
extensions: an array of strings, the extensions of your Jade files.
context: an object passed to the compiled template function when generating HTML. If
contextis a function itself, it's being executed and the result is used as a context for the template.
How is it different from X?
There are several similar modules for Mimosa, let's see how do they differ from each other:
templates['fileName']. You can then call this function from your client-side code.
mimosa-jade-static(this module) takes the
So, this module is basically the same as
but allowing you to write you code in Jade.
A full-featured sample project using Mimosa, Angular, RequireJS and this module can be found here.