jeudi 29 septembre 2016

how to render template use liquid gem with html, css file and asset

I have a folder with html file, css and asset. forder tree like below:

enter image description here

Forder ifreezeapp in folder public

When i try parse and render file index.html in view

Liquid::Template.parse( File.read("#{Rails.root.to_s}/public/ifreezeapp/index.html") ).render().html_safe  

But it load incorrect assets,css,js....

How to render template with can load correct assets,css,js,...

Aucun commentaire:

Enregistrer un commentaire