html - Switching to Meteor -


i have website , decided switch on using meteor. created meteor project , copied previous files new meteor folder followings error each html page.

index.html:1: bad formatting in html template 

i new meteor, missing something? have old files work in meteor ?

if had html files , dropped them meteor install, result quite bit different might expect, sounds of it. i'll explain briefly, suggestion tutorial on meteor.com website , read through of documentation.

the way meteor works templates, html, example:

<body>     {{> main}} </body>  <template name="main">     <h1>this title</h1>     {{> text}} </template> <template name="text">     <p>some example text</p> </template> 

to have different pages, you'll need set router, means installing routing plugin (like iron router or flow router), , dynamically displaying different templates depending on url (which pretty router does). routing set in .js file (as other dynamic functionality).

meteor great creating web & mobile apps, if need basic web pages, you're doing serious overkill going meteor. guess if want learn meteor, way. best of luck!


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -