Skip to content
 
 

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smarty to Twig

Converts templates in the smarty templating language to the twig templating language.

Installation

python setup.py install

Usage:

smartytotwig —smarty-file=examples/guestbook.tpl —twig-file=output.twig

Differences after fork:

- Added smartytotwig.bat
- Renamed “junk” to “whitespace” because usually junk refers to arbitrary data that is ignored by a parser
- Assigned some names for the quantifiers 0, -1 and -2
- Can parse config variables (a string like {# … #} in the Smarty template)
- Allows whitespace within the curly braces of an if condition

About

Converts Smarty templates into Twig templates.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages