RE: masking only a small part of a template

2012-07-09 Thread lacrymol...@gmail.com
#x27;t have the code right now, but may be you can find it. -Mensaje original- De: yati sagade Enviados: 09/07/2012 01:44:33 Asunto: Re: masking only a small part of a template I'm not sure by what you mean; There has always been template inheritance in Django :) Just specify the

Re: masking only a small part of a template

2012-07-09 Thread Tomas Neme
http://djangosnippets.org/snippets/1376/ this is what you want, I'm using it and it works like a charm you override in templates/path/to/template.html and do {% extends "app:path/to/template.html" %}, and this loader searches in `app`'s template dir by default On Mon, Jul 9, 2012 at 3:06 AM, tW

Re: masking only a small part of a template

2012-07-08 Thread tWoolie
Sorry, I should have been clearer. What I have is an external project that is included "as-is". It has it's templates and it's views are hardcoded against the template names. I want to know if it's possible to create a template called, say, "app/dashboard.html" in the global template dir that th

Re: masking only a small part of a template

2012-07-08 Thread yati sagade
I'm not sure by what you mean; There has always been template inheritance in Django :) Just specify the template you want to extend as the first statement in the template and to override a block in the template, just start a block with the same name as the block you want to override. For example, t

masking only a small part of a template

2012-07-08 Thread tWoolie
I have a template in a 3rd party app that i'm trying to override, but only a single block. Is there any way that I can do this without copy-pasting the entire template into the global templates dir just to change a few lines? Is there any way to create a template that "extends" itself from furth