[plugin] rex_mustache

Post your work in progress addons and get feedback

Post » Sat Apr 09, 2016 5:12 pm

Logic-less templates to render text content. Reference - mustache
Document, plugin and sample capx files are included.
It could separate formatted string and variables, for example,
The result of
Template: "Hello, {{name}}"
with view: {"name":"Construct2"}

is "Hello, Construct2"
B
108
S
26
G
260
Posts: 4,435
Reputation: 146,195

Post » Sat Apr 09, 2016 8:46 pm

Template: "Hello my name is,{{name}}"
with view: {"name":"Inigo Montoya"}
is "Hello my name is, Inigo Montoya"
Image ImageImage
B
168
S
50
G
164
Posts: 8,239
Reputation: 105,597

Post » Wed Apr 13, 2016 8:23 am

Update:

Add action and properties to set delimiters. Default is "{{" and "}}".
B
108
S
26
G
260
Posts: 4,435
Reputation: 146,195


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests