Hi all,

I'm a total noob with Sphinx, just started playing around with it
today, but it looks incredible.  I was thinking about starting to
write something very similar until I stumbled across this a month or
so ago.

I'm trying to get up to speed on using Sphinx, and so far so good
until getting to the templating.  I hear there is better documentation
in the works, so that will probably help a lot.  Until then, I was
poking around trial and error.

I tried creating a layout.html file under the templates directory that
just extends the standard layout.html without modification.  First,
I'm not sure what the correct syntax for that is.  So far, I've seen

{ #extend "layout.html"# }
{ #extend 'layout.html'# }
{ #extend !'layout.html'# }
{ extend !'layout.html' }

None of which seem to work for me. When my layout.html only contains:

{% extends "layout.html" %}

I get an error saying

Exception occurred:
  File "c:\python25\lib\site-packages\Jinja-1.2-py2.5-win32.egg\jinja
\parser.py"
, line 122, in parse_extends_directive
    self.stream.lineno, self.filename)
TemplateSyntaxError: mispositioned extends tag. extends must be the
first tag of
 a template. (layout.html, line 1)
The full traceback has been saved in c:\docume~1\dcraig\locals~1\temp
\sphinx-err
-cdbp8u.log, if you want to report the issue to the author.
Please also report this if it was a user error, so that a better error
message c
an be provided next time.
Send reports to [EMAIL PROTECTED] Thanks!

Can anyone point out what I'm doing wrong?

Thanks,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to