ninjecto.core
¶Core module.
Ninjecto
:
Ninjecto Core Class.ninjecto.core.
Ninjecto
(config, local, filters, namespaces, libraries, values, source, destination, filename)¶Ninjecto Core Class.
Provides an API to render a directory tree, a single file, or arbitrary content.
ninjecto.config.load_config
to get a normalized data structure.Inheritance
process
(src, dstdir, filename=None, levels=None)¶Process a path.
Path can be a single file, or a directory, in which case it will recurse into it.
Number of files processed.
render
(name, content, filepath=None)¶Render a template.
The rendered template.
run
(dry_run=False, override=False, levels=None)¶Execute the rendering of this Ninjecto context.