简体   繁体   中英

Using pyrocms and jquery.load()

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.

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().

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM