I have the following problem
Created a list of images and now I want to apply some nice layout to them using mason.js
Only problem is that the mason.js plugin don’t apply to the divs.Now if I try to use static template without emberjs in it it works correctly
I think you could also use this.$() to get a jQuery object scoped to your view; so you don’t have to look for a particular ID. However, I didn’t change the code from yours in this case.
You had it pretty much correct, you just had two errors:
The div’s id was set to #container it should have been just container, the css selector to specify an ID is what requires the # prefix, not when you give the element an ID.
raw.github.com serves up its content as plain-text, this prevents browsers from running the script. Since this is mainly an issue when using jsbin and the like there are workarounds to this, such as sites that will re-send that content with the appropriate mime/type headers (and if you pay attention to my edit you’ll see one workaround).