Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

c2c.template

Supported template Jinja, Mako, Template.

Tools that collect some vars and get them to a template engine.

Supported template: Jinja, Mako and Template.

Use c2c-template --help to get the command line help.

Vars file

The vars collector gets the vars from YAML files like this one:

extends: inherit.yaml

vars:
     string_var: a string
     int_var: 42
     interpreted_var: __import__('datetime').date.today()
     combined_var: 'Today: {interpreted_var:%Y-%m-%d}'

 interpreted-vars:
 - interpreted_var

The inherit.yaml is an other file with the same syntax that will provide initial vars.

The vars section is where we define the vars values, the YAML files support typing, than 42 will be an integer.

The interpreted-vars is a list of variable that the value will be interpreted, than the interpreted_var will have the value 4, See: eval().

The combined_var reuse a predefined variable and format, See: str.format().

Metadata

Release files for c2c.template 1.0.0dev-20141211

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for c2c.template 1.0.0dev-20141211
File Size Uploaded
c2c.template-1.0.0dev-20141211.tar.gz 5.4 kB Details

Release files / c2c.template-1.0.0dev-20141211.tar.gz

Download URL c2c.template-1.0.0dev-20141211.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
408257ca4cc02fef03045d909949e929d110c306ee2d69eb9cc42d315d96e32b
BLAKE2b-256 checksum
How to use checksums
fc294f0611befce1c6caa818cb27f3bced4f99f4ab8819b51f9647b7c6a35008
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.5.0

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

1 release file

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.9

1 release file

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

3 release files

1.2.0

2 release files

1.1.2

1 release file

1.1.1

2 release files

1.1.0

1 release file

1.0.0

1 release file

This release

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page