0
目前,項目網站上的示例通過Node.js顯示Riot.js的服務器端呈現。服務器端渲染如何與Riot.js和Phoenix一起使用?
var riot = require('riot')
var timer = require('timer.tag')
var html = riot.render(timer, { start: 42 })
console.log(html) // <timer><p>Seconds Elapsed: 42</p></timer>
我想知道它是如何與鳳凰或可能Sinatra工作。
後您的一些研究工作 – tharif
的我想它會工作相同 – webdeb
和闡述的問題。 – JustMichael