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

Closed
jorferreira opened this Issue Jun 6, 2012 · 1 comment

Comments

Projects
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:

layout.html
the same as bliss sample layout

test.html
@function body(){
//Hello!!
}
@render('layout',"title", body)

test.js
bliss.render("test.html",{});

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.

Owner

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