python - How to include another template with Chameleon? -


i'm using latest chameleon in latest pyramid. want let template include template. php, may use such '@include('_partials.assets')', how use chameleon?

in question how use template inheritance chameleon?, know how inherit, can't include yet.

thank you!

if understand question correctly can put line of code in first template.

<tal metal:use-macro='load:partial_assests.pt'></tal> 

"tal" replaced html tag.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -