Class: Exoteric::API

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

Constant Summary collapse

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