Fabricius - Documentation!#

Fabricius: Python modular render of template engine & project scaffolding.

Example#

from fabricius import Generator

def create_files():
    # Create the generator
    generator = Generator()

    # Add a file at "source/core.py"
    file = generator.add_file("core", "py")
    file.from_file("template-core.mustache").to_directory("source").with_data({"name": "My Module"}).use_mustache()

    # Add a file at "tests/test.py"
    file = generator.add_file("test", "py")
    file.from_file("template-test.txt").to_directory("tests").with_data({"name": "My Module"})

    # Create the files!
    generator.execute()

Indices and tables#