We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2bdbf commit d6a782bCopy full SHA for d6a782b
docs/statements.md
@@ -590,6 +590,22 @@ begin
590
591
include() can also take a second parameter, allowing for improved scoping of variables, similar to the _with_ statement.
592
593
+We have a 'functional' include syntax:
594
+```
595
+ <% template 'button' %>
596
+ <button text="<% text %>">
597
+ <% end %>
598
+
599
+ <% button { text="add" } %>
600
601
+ or
602
603
+ <% button text="remove" %>
604
605
606
+Above we can see we don't need to use the explict 'include' statement.
607
608
609
<a name="require"><h3>require</h3></a>
610
611

0 commit comments