sstephenson / eco

Embedded CoffeeScript templates
MIT License
1.71k stars 70 forks source link

Does eco support layout for server-side rendering? #60

Closed buunguyen closed 7 years ago

buunguyen commented 11 years ago

Something like this

File: content.eco

@layout = "layout.eco"

body =
   ... html for the content page

If not, how to avoid duplicating common sections (e.g. header, footer etc.) in a site?

balupton commented 10 years ago

I think the idea is that eco is a templating engine, rather than an document management system. If you're after layouts, then give DocPad a go.