Here are some examples of what programmers can do with macros in Fargo 2.
Anything that appears inside <% and %> is considered a macro, and it runs when the page is rendered. The result of running the macro appears in the rendered page.
Macros are written in JavaScript.
The stuff inside the brackets is just a JavaScript expression, that can call any number of builtin verbs, any standard JavaScript functions, or make HTTP requests using the http.readUrl verb.
If you enter <%2 * 12%>
you'll get 24 in the page.
Fargo has an array called snarkySlogans that can be useful for testing this feature.
<%snarkySlogans [5]%>
gets you the sixth item in the array, or "You should never argue with a crazy man."
And here's a cute macro that lists all the snarky slogans:
<%s="<ol>"; for (var i=0; i < snarkySlogans.length; i++){s += "<li>" + snarkySlogans [i] + "</li>"}; s + "</ol>"%>
Also: You can define your own macros, with parameters. (This is not a snarky slogan.)