htmlhandlebars.jscyclejs

How to use Cyclejs with external template


I want to start my first Cycle.js project and I will develop it in conjunction with a friend. He is an HTML designer (knows a lot about HTML and CSS, and he creates Handlebars templates) and I know a bit about JS.

I would like to know if there are any resources about how the HTML designer <--> JS Dev flow could be done.
Or in other words, how to extract HTML resources into different files.

Thanks in advance


Solution

  • For each screen you will have "view" function in JavaScript, where the markup will be written in JavaScript using hyperscript-helpers. If you need to convert from HTML markup to hyperscript-helpers, use http://html-to-hyperscript.paqmind.com/ .