zeus.ugent.be/content/tipuesearch_content.js

11 lines
270 B
JavaScript
Raw Normal View History

2016-07-24 13:09:37 +02:00
var tipuesearch = { "pages": [
<% articles.each do |e| %>
{
"title": "<%= e[:title] %>",
"url": "<%= url_for(e) %>",
2016-08-27 02:16:35 +02:00
"text": '<%= excerptize(e.reps[:text].compiled_content, length: 200).gsub(/\n/, ' ') %>',
2016-07-24 13:09:37 +02:00
"tags": ""
},
<% end %>
2016-08-27 02:16:35 +02:00
]}