Created
January 5, 2013 15:23
-
-
Save there4/4462076 to your computer and use it in GitHub Desktop.
Twig Template to generate JSONP from HiFi. This can be used to fetch blog post data from remote sites. Note that the caller must deliver the name of the callback as 'jsonCallback' as a parameter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{hifi.http.get.jsonCallback}}({"title":"{{ this.title|e('js') }}","content":"{{ this.content|e('js') }}"}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment