function execjs_rails_has_view(path) {
return true;
}
function execjs_rails_handler(path, opts) {
var json = JSON.stringify(opts, null, " "); var code = "execjs_rails_handler('"+path+"', "+json+");" return "" + "<h1>Hello, I'm execjs-rails!</h1>" + "<h2>There are many ways to configure me.</h2>" + "<p>Provide your own <code>server.js</code>.</p>" + "<p>Or create an initializer to set<br><code>config.execjs_rails.server_javascripts = ['my_javascript.js']</code>.</p>" + "<p>By default, the template handler and helper call the JavaScript function <code>execjs_rails_handler</code>.</p>" + "<p>You can override the function name with<br><code>config.execjs_rails.handler_function_name = 'my_handler'</code></p>" + "<p>This is the exact JavaScript code being called to generate this page:</p>" + "<p><pre><code>"+code+"</code></pre></p>" + "<p>For more configuration options, see <code>execjs-rails/lib/execjs/rails/engine.rb</code></p>" + "";
}