Skip to main content

Creates files and directories from templates

Project description

Stencil creates files and directories from templates. It is inspired by Paste Templates, but Stencil has no dependencies.

Installation

Install Stencil with pip:

$ pip install Stencil

It will also install argparse for python < 2.7. There is no python 3 support yet.

Usage example

To create new file or directory of files and subdirectories from <stencil> use:

$ stencil [global args] <stencil> [stencil args]

For example, using stencil new you can create a new project containing a new stencil:

$ stencil new mystencil

For creating stencils use new stencil as example. All stencils are collected together using entry points from Distribute.

History

0.2.1 (2011-08-10)

  • Better handling of target directory creation

  • Fix stencils order in command output

0.2 (2011-08-05)

  • Overridable resources

  • Use Jinja2 for templates

0.1.2 (2011-08-05)

  • Fix resource target path rendering

0.1.1 (2011-07-28)

  • Add possibility to collect resources from multiple dirs

0.1 (2011-04-14)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Stencil-0.2.1.tar.gz (6.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page