ModelEngineering / TemplateSB

Template preprocessor for kinetics models.
MIT License
1 stars 0 forks source link

Provide a general facility for Template Processor Commands #4

Closed joseph-hellerstein closed 7 years ago

joseph-hellerstein commented 7 years ago

Currently, there is one example of a template processor command, the escape to python code. However, there is likely a need for a general facility (e.g., designating lines that are to be expanded as group).

The new feature will use "{{" and "}}" to indicate a Template processor command. Commands will consist of one or more words, the first word being a verb. For example, the Python escape will be designated by

{{ ExecutePython Begin }} ... Python Codes ... {{ ExecutePython End }}

and grouping lines will be specified by

{{ GroupLines Begin }} ... lines to group ... {{ GroupLines End }}

joseph-hellerstein commented 7 years ago

Implemented.