<#example title="Using view properties">
<var.set name="foo" value="bar" />
<foreach list="<config.view.value name=authors>" set="name">
<loop.first>Prepared by </loop.first>
${name}
<loop.last not> and <else>.</loop.last>
</foreach>
</#example>
(function() {
function tryHighlightingAll() {
try {
Prism.highlightAll();
}
catch (e) {
console.log(e);
}
}
const eventsToListenFor = [ "load", "auto-refresh-load", "comment-insert", "comment-update", "feed-item-expand" ];
for (let i = 0; i < eventsToListenFor.length; i ++) {
Proteus.addHandler(eventsToListenFor[i], tryHighlightingAll);
}
})();