-
Notifications
You must be signed in to change notification settings - Fork 3
/
learn.json
31 lines (31 loc) · 2 KB
/
learn.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"surplus": {
"name": "Surplus",
"description": "Simple, clean fast reactive web apps with S.js and the Surplus JSX preprocessor",
"homepage": "https://github.com/adamhaile/surplus",
"examples": [{
"name": "TodoMVC",
"url": "https://adamhaile.github.io/surplus-todomvc",
"source_url": "https://github.com/adamhaile/surplus-todomvc"
}],
"link_groups": [{
"heading": "Official Resources",
"links": [{
"name": "S.js homepage",
"url": "https://github.com/adamhaile/S"
}, {
"name": "Surplus homepage",
"url": "https://github.com/adamhaile/surplus"
}, {
"name": "S.js Issues",
"url": "https://github.com/adamhaile/S/issues"
}, {
"name": "Surplus Issues",
"url": "https://github.com/adamhaile/surplus/issues"
}]
}]
},
"templates": {
"todomvc": "<header> <h3><%= name %></h3> <span class=\"source-links\"> <% if (typeof examples !== 'undefined') { %> <% examples.forEach(function (example) { %> <h5><%= example.name %></h5> <% if (!location.href.match(example.url + '/')) { %> <a class=\"demo-link\" data-type=\"<%= example.type === 'backend' ? 'external' : 'local' %>\" href=\"<%= example.url %>\">Demo</a>, <% } if (example.type === 'backend') { %><a href=\"<%= example.source_url %>\"><% } else { %><a href=\"<%= example.source_url ? example.source_url : example.url %>\"><% } %>Source</a> <% }); %> <% } %> </span> </header> <hr> <blockquote class=\"quote speech-bubble\"> <p><%= description %></p> <footer> <a href=\"http://<%= homepage %>\"><%= name %></a> </footer> </blockquote> <% if (typeof link_groups !== 'undefined') { %> <hr> <% link_groups.forEach(function (link_group) { %> <h4><%= link_group.heading %></h4> <ul> <% link_group.links.forEach(function (link) { %> <li> <a href=\"<%= link.url %>\"><%= link.name %></a> </li> <% }); %> </ul> <% }); %> <% } %> <footer> <hr> <em>If you have other helpful links to share, or find any of the links above no longer work, please <a href=\"https://github.com/adamhaile\">let me know</a>.</em> </footer>"
}
}