@zachmullen and @cpatrick: Is adding JS code to a div the recommended / standard midas way to expose data to JS ?
Using jsonContent div may conflict with some other code, what about using an explicit namespace ?
For example: https://github.com/midasplatform/slicerpackages/blob/master/controllers/ViewController.php#L267
Open question: What about using the api proposed by jquery? See http://api.jquery.com/data/
@zachmullen and @cpatrick: Is adding JS code to a div the recommended / standard midas way to expose data to JS ?
Using jsonContent div may conflict with some other code, what about using an explicit namespace ?
For example: https://github.com/midasplatform/slicerpackages/blob/master/controllers/ViewController.php#L267
Open question: What about using the api proposed by jquery? See http://api.jquery.com/data/