javascript - Expose compiled Julius templates as a seperate file, instead of directly placing them in the DOM -
when debugging js, chrome allows edit js , reload page. can happen if js editing provided separate resource. far can tell, it's not possible debug js code fashion because of way yesod drops included js on page directly.
editing julius template file without changing variable interpolation allows instant reloading of page. however, if include small snippets of javascript with:
towidget [julius|dostuff();|]
i can't edit javascript debugging without causing reload of model, our case, takes ~1minute. there way around this?
there multiple choices here:
- if put julius content in external file, can use
juliusfilereload
, edit file , reload webpage without recompile. scaffolded site default. - have generated javascript placed in separate file. default behavior of scaffolded site.
Comments
Post a Comment