Re: What do you think about unify templates feature?

2019-01-19 Thread J . Pablo Martín Cobos
mplates, django >>>>>>>>> cached loader >>>>>>>>>will have to get 3 templates (from cache). With my proposal your >>>>>>>>> view >>>>>>>>>render on

Re: What do you think about unify templates feature?

2019-01-19 Thread J . Pablo Martín Cobos
years ago I requested a feature related with templates >>>>>>>> >>>>>>> >>>>>>> [6] >>>>>>> >>>>>>> >>>>>>> , now I have a new request :-) 8 years ago I trie

Re: What do you think about unify templates feature?

2019-01-19 Thread J . Pablo Martín Cobos
d >>>>>>> 2. >>>>>>> https://code.djangoproject.com/query?status=assigned&status=closed&status=new&reporter=~pmartin&col=id&col=summary&col=status&col=owner&col=type&col=component&col=version&desc=1&order=id &g

Re: What do you think about unify templates feature?

2019-01-19 Thread Adam Johnson
>>>>> >>>>>>> 1. >>>>>>> https://github.com/django/django/pulls?q=is%3Apr+author%3Agoinnn+is%3Aclosed >>>>>>> 2. >>>>>>> https://code.djangoproject.com/query?status=assigned&status=closed&status

Re: What do you think about unify templates feature?

2019-01-19 Thread Jani Tiainen
ify_templates-py-L58 >>>>>> 6. https://code.djangoproject.com/ticket/15053 >>>>>> >>>>>> >>>>>> Best, >>>>>> >>>>>> >>>>>> El vie., 18 ene. 2019 a las 14:11, Jani Tiainen ()

Re: What do you think about unify templates feature?

2019-01-19 Thread J . Pablo Martín Cobos
>>> external package? >>>>>> >>>>>> Also you should release it as a package so people can start using it, >>>>>> also preferably releasing it with BSD license like Django itself is. >>>>>> Otherwise there are very little

Re: What do you think about unify templates feature?

2019-01-18 Thread Jani Tiainen
AM J. Pablo Martín Cobos < >>>>> goi...@gmail.com> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> From one year ago, I am using an own command for Django templates >>>>>> that unify them. With an exa

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
>>>>> {% for news_item in news %} >>>>> {{ news_item.title }} >>>>> {{ news_item.subtitle }} >>>>> {% endfor %} >>>>> {% endblock %} >>>>> >>>>> 2. base.ht

Re: What do you think about unify templates feature?

2019-01-18 Thread Jani Tiainen
/www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> >>>> http://www.w3.org/1999/xhtml"; lang="{{ >>>> LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif >>>> %}> >>>> >>

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
> >>> >>> >>> 3. inc.news.title.html >>> News >>> >>> With this command I preproces every template of a settings variable and >>> I get something like this: >>> >>> news.unify.html >>

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
w.w3.org/1999/xhtml"; lang="{{ >> LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif >> %}> >> >> News >> >> >> {% for news_item in news %} >

Re: What do you think about unify templates feature?

2019-01-18 Thread Jani Tiainen
{{ news_item.title }} > {{ news_item.subtitle }} > {% endfor %} > > > > So I have a two improves: > >1. It is more fast. And in a real project a view can render easyly 50 >templates >2. I use news.html to develo

Re: What do you think about unify templates feature?

2019-01-18 Thread Pavlos Georgiadis
              {{ news_item.title }} >                 {{ news_item.subtitle }} >             {% endfor %} >         >     > > So I have a two improves: > > 1. It is more fast. And in a real project a view can render &

Re: What do you think about unify templates feature?

2019-01-18 Thread Josh Smeaton
gt; I get something like this: >>> >>> news.unify.html >>> >>> >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> >>> http://www.w3.org/1999/xhtml"; lang="{{ >>> LANGUAGE_CODE|default:"en-us" }}" {%

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
%}dir="rtl"{% endif >> %}> >> >> News >> >> >> {% for news_item in news %} >> {{ news_item.title }} >> {{ news_item.subtitle }} >> {% endf

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
;> %}> >> >> News >> >> >> {% for news_item in news %} >> {{ news_item.title }} >> {{ news_item.subtitle }} >> {% endfor %} >> >>

Re: What do you think about unify templates feature?

2019-01-17 Thread shiva kumar
le }} > {% endfor %} > > > > So I have a two improves: > >1. It is more fast. And in a real project a view can render easyly 50 >templates >2. I use news.html to develop and news.unify.html to production. So I >don't lose legilib

Re: What do you think about unify templates feature?

2019-01-17 Thread Maciek Olko
tle }} > {{ news_item.subtitle }} > {% endfor %} > > > > So I have a two improves: > >1. It is more fast. And in a real project a view can render easyly 50 >templates >2. I use news.html to develop and news.unif

What do you think about unify templates feature?

2019-01-17 Thread J . Pablo Martín Cobos
1. It is more fast. And in a real project a view can render easyly 50 templates 2. I use news.html to develop and news.unify.html to production. So I don't lose legilibility. What do you think about "unify templates feature"? Do you know if exists a similar public