Class: Exoteric::API

Inherits:
Sinatra::Application
  • Object
show all
Defined in:
lib/exoteric/api.rb

Constant Summary collapse

SCRIPT_TPL =
"var Exoteric={c:<%= @count.to_json %>, count: function(sn){return this.c[sn] || 0;}};\n<% unless @callback.empty? %><%= @callback %>();<% end %>\n"