rattail.sw.locsms.samples – Samples Interface

rattail.sw.locsms.samples.generate_samples(source_dir, output_dir, render_mako=True, mako_vars={}, use_mercurial_times=True)

Generates zipped samples in output_dir based on standalone files found in source_dir.

If render_mako is True, will render files ending in *.mako using the Mako template engine, passing mako_vars to each render() call. (Will also remove the .mako extensions in the resultant zip files).

If use_mercurial_times is True, the resultant zip files will have their last-modified timestamp overwritten with the last log times from the Mercurial repository.

Previous topic


Next topic


This Page