Skip to main content

filesystem template interpreter

Project description

/templates for the people/

So people generally do things the easiest way possible. If you try to get people to send you a file with, say, a “one-off” script, they will probably hard code a bunch of stuff in it. Then, you’re not really sure what needs to be changed and because you’re human you might make a mistake. Worse, its a perl script and you’re a python programmer. You don’t know what that script does!

And this is the time of the iceberg. If it really is a one-off, who cares? But quickly one-offs become a deployment story, and not a very efficient one.

Making a New Template

Variable Conventions

MakeItSo! provides a few variables for you. You can include another file or URL using {{include(URI)}}, where URI is the file path or the URL (of course, internet is required to include remote resources). The included resource is not included.

Files and URLS being interpolated also have the variable %(here)s, which is the parent of their resource. Therefor, using sensible path conventions, a neighboring file may be (e.g.) included like

{{include(here + ‘foo.txt’)}}

The python template asserts several conventions:

  • project: the project chosen

  • author: author of a project

  • email: author’s email

  • url: url of the project

  • repo: the repository of the project; this will be used for the URL

    if it is given and the URL is not

Adding a License to a Template

[TODO]

Web Service

python has the ability to run files from stdin. This means you can run makeitso directly from the web:

python <(curl http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py) [URI]

This uses the bash shell. If you have another shell you may have to use another syntax, download the file, or install the package.

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

MakeItSo-0.2.7.tar.gz (11.7 kB view details)

Uploaded Source

File details

Details for the file MakeItSo-0.2.7.tar.gz.

File metadata

  • Download URL: MakeItSo-0.2.7.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for MakeItSo-0.2.7.tar.gz
Algorithm Hash digest
SHA256 7a37b8d05d50ff80a9d88abed6fd66142ac6671d6c85d3a385f9edc4c851a58c
MD5 8fa08baebbee56be2f9eea6eb5cf4e46
BLAKE2b-256 21f3b8239b90fd90f882c49d7beed1fcb7d3e783f84f7c4a0bf4308ac85f35ba

See more details on using hashes here.

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