Hi Carl,

2014-11-05 0:02 GMT+01:00 Carl Meyer <[email protected]>:

I can imagine a scenario where I am
> implementing a specialized project-specific template backend (for some
> reason - let's hand-wave past this), and it would feel extraneous to be
> forced to name an app sub-directory that I plan to never use.
>

That makes sense. I've allowed templates engines not to provide the
basic loading features but in that case I've required them to raise an
exception if DIRS isn't empty or APP_DIRS isn't False.


> I do think the DEP should be updated to use OrderedDict in
> all examples with more than one template engine configured,


I've made this change in the only example that had two engines.


> and the default startproject settings file should also use OrderedDict.
>

Well, the good news is that we don't need to put TEMPLATES
in the auto-generated settings file. The defaults just work if you're
putting templates in apps.

If we decided to add it for easier customisation, you're right, we
should include the OrderedDict, or it would be a Gun Pointed at
User's Feet, waiting for them to add a second engine.


> I think the `context_instance` and `dirs` arguments should also be
> deprecated (both `render` and `render_to_response` have both, since they
> pass along *args/**kwargs to `render_to_string`)?
>
> And `render` should no longer wrap the given context dict in a
> RequestContext, but just pass it along to the backend's `render` as a dict.
>
> And both `render` and `render_to_response` can probably gain explicit
> signatures, rather than *args/**kwargs?
>

OK, I won't get away with hand-vawing :-)

I'll let you know when I have a specification ready for review.

-- 
Aymeric.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANE-7mWGf%3DvnG0u76pVkUkWhPQJSp0k_dD3KpM5Gm-CqUfLs_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to