Partials Not Rendering With Mustache Templates #320

Closed
harshadyeola opened this Issue Jun 19, 2015 · 7 comments

Comments

Projects
None yet
2 participants
@harshadyeola

I find that cement does not find the partial path with cement extension mustache.
I tried to use partial with mustache extension but it did not find partial path.
I guess cement did not propagate the path of partial.

Any suggestion over using partials?

@derks

This comment has been minimized.

Show comment
Hide comment
@derks

derks Jun 19, 2015

Member

I'm not following what you mean by partial path exactly. Please clarify, and provide a code example if possible.

Member

derks commented Jun 19, 2015

I'm not following what you mean by partial path exactly. Please clarify, and provide a code example if possible.

@harshadyeola

This comment has been minimized.

Show comment
Hide comment
@harshadyeola

harshadyeola Jun 22, 2015

Here is My code snippet, that explains the thing

myfile = open('/etc/my.cnf', encoding='utf-8',
                          mode='w')

self.app.render((data), 'virtualconf.mustache',
                out=myfile)
myfile.close()
virtualconf.mustache

Hello i am in virtualconf.mustache
{{> php}}

php.mustache

"Hello I am using partials"

With above code i get output

$cat /etc/my.cnf
Hello i am in virtualconf.mustache

Here is My code snippet, that explains the thing

myfile = open('/etc/my.cnf', encoding='utf-8',
                          mode='w')

self.app.render((data), 'virtualconf.mustache',
                out=myfile)
myfile.close()
virtualconf.mustache

Hello i am in virtualconf.mustache
{{> php}}

php.mustache

"Hello I am using partials"

With above code i get output

$cat /etc/my.cnf
Hello i am in virtualconf.mustache

@derks derks changed the title from can not use partials with cement mustache extension to Partials Not Rendering With Mustache Templates Jun 22, 2015

@derks

This comment has been minimized.

Show comment
Hide comment
@derks

derks Jun 22, 2015

Member

Confirmed, I can reproduce this locally.

Member

derks commented Jun 22, 2015

Confirmed, I can reproduce this locally.

derks added a commit that referenced this issue Jun 22, 2015

@derks

This comment has been minimized.

Show comment
Hide comment
@derks

derks Jun 22, 2015

Member

Fix pushed to master, will be released with Cement 2.8.0 stable, and Cement 2.6.2 Stable.

Member

derks commented Jun 22, 2015

Fix pushed to master, will be released with Cement 2.8.0 stable, and Cement 2.6.2 Stable.

@derks derks closed this Jun 22, 2015

@harshadyeola

This comment has been minimized.

Show comment
Hide comment
@harshadyeola

harshadyeola Jun 23, 2015

thanks @derks for this quick fix
looking forward for the release of this fix

thanks @derks for this quick fix
looking forward for the release of this fix

@derks

This comment has been minimized.

Show comment
Hide comment
@derks

derks Jun 23, 2015

Member

It was released earlier today in 2.6.2 (current stable).

Member

derks commented Jun 23, 2015

It was released earlier today in 2.6.2 (current stable).

@harshadyeola

This comment has been minimized.

Show comment
Hide comment
@harshadyeola

harshadyeola Jun 23, 2015

Ahh! awesome thank you.

Ahh! awesome thank you.

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