Template ONE gist file. Nothing else!
Project description
CrumbCutter
- Template ONE gist file.
- Nothing else!
pip install crumbcutter -U
crumbcutter <username>/<gist-name>
Example Gist
crumbcutter.json
{
"project_name": "Crumbcutter Website Simple",
"author": "Anonymous"
}
index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{ crumbcutter.project_name }}</title>
</head>
<body>
<h1>{{ cookiecutter.project_name }}</h1>
<p>by {{ crumbcutter.author }}</p>
</body>
</html>
Output
foo@bar:~$ crumbcutter octocat/crumbcutter-index
[1/2] project_name (Index): My Project
[2/2] author (Anonymous): Me
foo@bar:~$ cat index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>My Project</title>
</head>
<body>
<h1>My Project</h1>
<p>by Me</p>
</body>
</html>
TIP: Use -x For eXtremely Fast Rendering
foo@bar:~$ crumbcutter jonathanagustin/crumbcutter-template -x
foo@bar:~$ cat index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Index</title>
</head>
<body>
<h1>Index</h1>
<p>by Anonymous</p>
</body>
</html>
Flags
-o, --output-dir : Directory where file will render to. Defaults to current directory.
-x, --no-input : eXtremely fast rendering. No user input. Use default values.
-v, --verbose : Verbose output for debugging.
Use cookiecutter to template more files or folders.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crumbcutter-0.1.16.tar.gz
(92.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crumbcutter-0.1.16.tar.gz.
File metadata
- Download URL: crumbcutter-0.1.16.tar.gz
- Upload date:
- Size: 92.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e51c1d0d90b8fb49f2fe81c650ca71ae7f02933941421caf9b3c6605980a3f
|
|
| MD5 |
b8e9698fa1efd415741e60cc076163d7
|
|
| BLAKE2b-256 |
502ed8937c744e7afd13f29cd5f5d7391facf9ea4c610a60559ce0d8ab050868
|
File details
Details for the file crumbcutter-0.1.16-py3-none-any.whl.
File metadata
- Download URL: crumbcutter-0.1.16-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57a98b2766c38fc8a1f0e997b3fd653c81c510eb30ffbfcefa8c6c96d88b07f5
|
|
| MD5 |
f1014e7fea840d8105853f70b8820272
|
|
| BLAKE2b-256 |
f9cbec34461a5a284e1616e2581b91ef2ac69c94db4415dc3dc2beed87adfe31
|