Skip to content

Instantly share code, notes, and snippets.

@benouat
Last active April 6, 2016 14:45
Show Gist options
  • Select an option

  • Save benouat/73d3d686a903b1bc7a0a388310a4c677 to your computer and use it in GitHub Desktop.

Select an option

Save benouat/73d3d686a903b1bc7a0a388310a4c677 to your computer and use it in GitHub Desktop.
ErrorLists HTML injection
{
"name": "ErrorLists HTML injection",
"description": "",
"data": {
"errorMessages": [
{
"type": "I",
"localizedMessage": "Information message line 1."
},
{
"type": "I",
"localizedMessage": "Information message line 2."
},
{
"type": "I",
"escape": false,
"localizedMessage": "Information message line 3 with <strong>bold</strong>."
}
]
}
}
{macro main()}
<h1>Hello Instant Aria Templates</h1>
{@aria:ErrorList {
title: "Error",
bind: {
messages: {
to: "errorMessages",
inside: data
}
}
}/}
{/macro}
({
$classpath:'InstantTemplateScript',
$prototype : {
myMethod: function() {
}
}
})
@benouat
Copy link
Copy Markdown
Author

benouat commented Apr 6, 2016

Created by Instant Aria Templates, viewable on http://instant.ariatemplates.com/benouat/73d3d686a903b1bc7a0a388310a4c677

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment