Pyramid has an asset override system: 
https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/assets.html#overriding-assets

> On Dec 13, 2017, at 05:21, Julien Cigar <julien.ci...@gmail.com> wrote:
> 
> Hello,
> 
> I have a "core" CMS-like home made package which I'd like to modularize it a 
> bit to be reusable.
> I wondered what would be the "cleanest" approach regarding the templates and 
> the @view_config decorators?
> At the moment I have a couple of @view_config(..., 
> renderer='blabla:templates/foo.pt') and I'd like to put the templates in a 
> dedicated packages and config.include() them
> I was thinking of a renderer="%{default}:/foo.pt" witjh a view deriver which 
> check the presence of "%{default}" and replace it...
> 
> Any comment ? :)
> 
> Thanks!
> Julien
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discuss+unsubscr...@googlegroups.com 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To post to this group, send email to pylons-discuss@googlegroups.com 
> <mailto:pylons-discuss@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/c15e6dcf-cd6b-4c2d-9b3e-3f72d37e26f6%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/c15e6dcf-cd6b-4c2d-9b3e-3f72d37e26f6%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/8E96154C-3B79-4599-AA39-02E48A3EBE38%400x58.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to