Created on 26 April 2019
icon_unfollowing
Login to follow
texttemplate

TextTemplate

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 26 April 2019 by 
texttemplate

TextTemplate

Details
Create text templates using Handlebars.js for .NET. Handlebars.js is a popular templating engine that is powerful, simple to use and has a large community. It is based on the Mustache template language, but improves it in several important ways. With Handlebars, you can separate the generation of HTML to write cleaner code.
Read more

You can use foreach loops, very simple if logic, variables, records, lists, structures, entities, you name it!

Using clear and intuitive way to call data.

Easiest is to use a Record in which you put structures, entities, lists or just directly use variables.
Where you can call them by writing their name (which is shown in the record variable in service studio, see screenshots) using a . to seperate between object and attribute.

Make sure to call ToObject(MyRecordOrEntityOrListOrWhatever) when inputting it to the function.

Using: https://github.com/rexm/Handlebars.Net

Release notes (1.0.0)
Reviews (0)
Category
Functional libraries & utilities, Other functions & libraries
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
TextTemplate has no dependencies.
Application Objects
TextTemplate has 0 AOs.
Team
Compatible with
Version 11
Database:
All
Asset consumers
No consumers yet.
Weekly downloads