NaitLee / Super-Tpl

Make managing work of HFS templates easier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Super-Tpl

Make managing work of HFS templates easier.

Usage

By parting template sections into independent files, creation of a template will be structured.

A valid file must be like: ~special%3Astrings%7Ccache.txt

That is, start with ~, URIEncode special characters, also with a extension.

Besides, TypeScript is also supported. Just name a .ts file, then it will be transpiled to JavaScript.

index.html

This is web interface of super-tpl. drag all parts to the file input, click OK, then you got template downloaded.

Useful for simple testing and building.

If TypeScript is used, be sure do not miss file typescriptServices.js.

converter.py

python3 converter.py "folder_of_parts"

This is Python3 version of super-tpl. by running the above command, the process is done.

Useful for workspace, that need change files frequently.

If TypeScript is used, be sure to have Node.js installed (or on Windows, node.exe put inside folder of converter.py), also typescriptServices.js is there.

watchdog.py

python3 watchdog.py "folder_of_parts"

Watch a folder. If any file changes, build the template automatically.

On Windows, you can drag your folder to watchdog.py to launch, and Ctrl+C to close.

About

Make managing work of HFS templates easier.

License:Apache License 2.0


Languages

Language:Python 51.0%Language:JavaScript 31.2%Language:HTML 17.8%