-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Parag Jain edited this page Jul 18, 2019
·
1 revision
Twig is a template-based natural language generation library. Template specification is based on Handlebars specification format, which is a superset Mustache templates.
Why use Twig over base Handlebars? Twig serves as an extension over base Handlebar for easy usage and specification.
- Extension towards a more manageable template specification format.
- Easy definition of argument values.
- Extended set of tags for comparison (Example: if_gt, if_leq, iff)
- No code changes required for adding/removing/changing template specifications.
- Multiple template definitions to allow random template selection.
- Multilingual support.
- Template inheritance.
- Default value support.