Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Conventions, strategy, syntax, file extension for external mustache views/templates?

$
0
0
I still would advise against using a top level array.  It's just too easy that a CORS <script> gets injected somewhere else and your servers don't recognize it.


If your data looks like: 

  1. {
  2.       "data": [
  3.             {
  4.                   "key": "val"
  5.             },
  6.             ...
  7.       ]
  8. }

There should be no problems.  We do this on about 20 apps at the moment.  Are you sure your JSON is valid?  What problem are you having exactly?

Viewing all articles
Browse latest Browse all 3491

Trending Articles