Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Unable to use composing layout #3

jorferreira opened this Issue Jun 6, 2012 · 1 comment


None yet
2 participants

I'm using express js and I'm trying to use composing layout, when the bliss is rendering the template is looking for the layout its own folder instead the layout path, so I'm always getting "Error: ENOENT, no such file or directory 'layout.html'".

this is the code:

the same as bliss sample layout

@function body(){
@render('layout',"title", body)


I got everything working by changing the line 64 in bliss.js: sending the filepath instead of filename to the compileFile method

template = self.compileFile(filepath, options);

I'm just testing bliss, I really don't know if I'm doing something wrong or there is an issue in the bliss,js code.


cstivers78 commented Jun 7, 2012

Thanks for reporting the issue. You were right about the bug and the fix. I made the fix and published it to npm: bliss-1.0.1

@cstivers78 cstivers78 closed this Jun 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment