Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (22 sloc) 0.566 kB
@Bliss = Bliss
@bliss = new Bliss()
@bliss.compileNode = (node) ->
id = node.id
source = node.innerHTML
if source
template = bliss.compile source, {context:window}
if id and window
window[id] = template
node.parentNode.removeChild node
else
output = document.createElement("div")
output.innerHTML = template()
node.parentNode.replaceChild output, node
return
@bliss.compileNodeList = (nodeList) ->
for node in nodeList
try
@compileNode node
catch error
console.error '[error]', error
return
Jump to Line
Something went wrong with that request. Please try again.