+20
README.md
+20
README.md
···
199
// include a previously defined block
200
[% INCLUDE myshinyblock %]
201
202
+
// set a variable
203
+
[% SET myvar = "foo" %]
204
+
205
+
// include a template based on a variable path (would expand to my/foo/template.html
206
+
[% INCLUDE my/$myvar/template.html %]
207
+
208
+
// try/catch
209
+
[% TRY %]
210
+
[% INCLUDE my/$myvar/template.html %]
211
+
[% CATCH %]
212
+
[% INCLUDE bog/standard/template.html %]
213
+
[% END %]
214
+
215
+
[% TRY %]
216
+
[% INCLUDE anundefinedblock %]
217
+
[% CATCH %]
218
+
oops!
219
+
[% END %]
220
+
221
+
222
// define a block
223
[% BLOCK myshinyblock %]
224
[% entry.name %]