String replacer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
pytme.py

README.md

String replacer for HTML templating

Example usage:

t = Template(<TEMPLATE_FILE_PATH> or <TEMPLATE_STRING>)

# Insert datum.
t.insert('TITLE', 'Article title')

# Insert repeater.
t.insert('ARTICLE')

# Write to file.
t.write(<SAVE_TO_PATH>)

# Get template string.
t.get()