-2

My project uses Koa2 with Marko on the front.

I'm looking to avoid repeating layout HTML that's common on every page. Essentially splitting it out into partials and having a "main" partial (with all the common stuff in it!).

I'm from the "Rails world" where we have application-layouts and partials that get loaded for each specific route, rather than repeating layout

Do we have something similar for Node?

Qasim
  • 1,554
  • 1
  • 13
  • 22

1 Answers1

0

You can use koa-render-view for templates render and use for templates ejs(ejs.co) or template from this list https://github.com/tj/consolidate.js

Artem
  • 61
  • 4