mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
feature: template string for {%include%} argument, #72
This commit is contained in:
@@ -23,6 +23,14 @@ describe('tags/include', function () {
|
||||
return expect(liquid.renderFile('/current.html')).to
|
||||
.eventually.equal('barfoobar')
|
||||
})
|
||||
it('should support template string', function () {
|
||||
mock({
|
||||
'/current.html': 'bar{% include "bar/{{name}}" %}bar',
|
||||
'/bar/foo.html': 'foo'
|
||||
})
|
||||
return expect(liquid.renderFile('/current.html', {name: 'foo.html'})).to
|
||||
.eventually.equal('barfoobar')
|
||||
})
|
||||
|
||||
it('should throw when not specified', function () {
|
||||
mock({
|
||||
|
||||
Reference in New Issue
Block a user