Skip to content

Instantly share code, notes, and snippets.



Created Oct 10, 2013
What would you like to do?
js code to find page data for template in harp
var page = (function (cur) {
var data = public;
for (var i = 0; i < cur.path.length - 1; ++i) {
data = data[cur.path[i]];
data =[cur.path[cur.path.length - 1]];
return data;
}) (current);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment