queckezz / koa-views

Template rendering middleware for koa (hbs, swig, pug, anything! :sparkles:)
MIT License
710 stars 87 forks source link

[feature] My project need to config multiple root path #133

Closed dactac closed 3 years ago

dactac commented 5 years ago

It's a big project with multiple templates folder in different directory. It's ok when I use the top folder at first, but when sub folder templates has other dependencies and use a absolute path (legacy code, can't change). It can't work.

code like this: {% extends "page/base.html" %}

throws can't find error

int64ago commented 5 years ago

Clound you give a minimum demo?