Skip to content

Commit

Permalink
Fix ECO template compilation errors
Browse files Browse the repository at this point in the history
This type of escape character compilation errors exists on MACOS only, not author's Docker ubuntu dev, even though both platforms equipped with all the same library versions.
  • Loading branch information
pbodq2 authored Jan 28, 2021
1 parent 0874402 commit 16df083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/apps/lab/apiBrowser/tpl/api_method_page.jst.eco
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<% if @type is 'method': %>
<div class="api-method--execute">
<h3>Execute <strong><%= @method %></strong> with these params:</h3>
<textarea class="api-method--params" placeholder="Eg. [arg, foo, true]"></textarea>
<textarea class="api-method--params" placeholder="Eg. [<%= '\"' %>arg<%= '\"' %>, <%= '\"' %>foo<%= '\"' %>, true]"></textarea>
<p class="description">Parameters get parsed by
<a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse" target="_blank">JSON.parse</a>.
Check the console for response objects, you will get an 'unexpected token' error if parsing failed.
Expand Down

0 comments on commit 16df083

Please sign in to comment.