Using pyrocms and jquery.load()

90 views Asked by At

I'm fairly new to pyrocms and php in general. In pyrocms, you can create html partials and then in the pyro page you can call that partial like so

{{theme:partial name="my-partial"}} 

which will call my-partial.html that sits inside the

~/views/partials/

However when i call the partial using jquery $.load(), the lex parsing on that partial is not rendered. So you end up with {{ variables }} all over the page.

Just wondering why this happens and if here is a work around for this? Is this something to do with php having to call the server in order to render the lex or could this be something with the cms itself.

Not too sure where to start searching for a solution for this. I'm a bit in the dark with php.

1

There are 1 answers

1
ikoniqoz On

I am pretty sure that theme partials can only be called by using the Pyro tag as you have shown. ie: {{ theme:partial name="my-partial" }}. Not sure what you mean by $.load().