Skip to content

ntpeters/base16-template-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Base16 Template Converter

This script converts Base16 templates written using the old Embedded Ruby syntax to the new Mustache syntax.

Usage

Just run the script with the path to the template you want to convert:

base16-template-converter.sh template.erb

A new, converted file is output in the same directory: template.mustache

Requirements

This script uses sed to modify the text in the file, and specifically requires the GNU version of sed.

If you are on macOS, you can install GNU sed through Homebrew:

brew install gnu-sed --with-default-names

Note: the --with-default-names option will cause gnu-sed to be used instead of the built-in sed.

About

Convert old Base16 templates to new Base16 templates!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages