[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
272
Posts: 4,473
Reputation: 152,281

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
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » Wed Apr 13, 2016 8:23 am

Update:

Add action and properties to set delimiters. Default is "{{" and "}}".
B
108
S
26
G
272
Posts: 4,473
Reputation: 152,281


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests