[Buildbot-commits] [SPAM] Re: [Buildbot] #871: user customized jinja templates should be able to extend default templates

Buildbot buildbot-devel at lists.sourceforge.net
Mon May 31 17:05:39 UTC 2010


#871: user customized jinja templates should be able to extend default templates
------------------------+---------------------------------------------------
Reporter:  cdadhemar    |        Owner:           
    Type:  enhancement  |       Status:  closed   
Priority:  major        |    Milestone:  undecided
 Version:  0.8.0        |   Resolution:  invalid  
Keywords:               |  
------------------------+---------------------------------------------------
Changes (by cdadhemar):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 This request is invalid since what I ask is a Sphinx dedicated feature.

 What I wanted is that : http://sphinx.pocoo.org/templating.html#jinja-
 sphinx-templating-primer

 Where I had an issue is that I just wanted to override part of the default
 layout.html. I created a file named "layout.html" in the master's
 templates directory. I then extended it :

 {% extend "layout.html" %}
 <p>foobar</p>

 This lead to an infinite loop since the template tries to extend itself
 ...

 In Sphinx we can override a template using the same name but use the "!"
 prefix :

 {% extend "!layout.html" %}
 <p>foobar</p>

 This would have worked but I think this is a Sphinx feature not a generic
 Jinja feature ... isn't it ?

-- 
Ticket URL: <http://buildbot.net/trac/ticket/871#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list