Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42901
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <janpeterr@freenet.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.025 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'syntax': 0.04; 'subject:help': 0.08; 'advice.': 0.09; 'python': 0.11; 'jan': 0.12; 'navigation': 0.16; 'subject:simple': 0.16; 'url:pocoo': 0.16; 'when?': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'bit': 0.19; 'trying': 0.19; 'help.': 0.21; 'header:User-Agent:1': 0.23; 'error': 0.23; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'code': 0.31; 'raised': 0.31; 'anyone': 0.31; 'but': 0.35; 'raising': 0.36; 'url:org': 0.36; 'to:addr:python- list': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'simple': 0.61; 'url:index': 0.63; 'more': 0.64; 'header:Reply-To:1': 0.67; 'invalid': 0.68; 'webpage': 0.68; 'reply-to:no real name:2**0': 0.71; 'url:templates': 0.84; 'received:89': 0.85 |
| Date | Sat, 06 Apr 2013 10:15:19 +0300 |
| From | Jan Riechers <janpeterr@freenet.de> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: can anyone help me in developing a simple webpage in jinja2 |
| References | <e8c498f4-348c-415f-927c-f871551d9a82@googlegroups.com> |
| In-Reply-To | <e8c498f4-348c-415f-927c-f871551d9a82@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | janpeterr@freenet.de |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.194.1365232819.3114.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365232819 news.xs4all.nl 6873 [2001:888:2000:d::a6]:45715 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:42901 |
Show key headers only | View raw
On 06.04.2013 01:41, Satabdi Mukherjee wrote:
> i am a rookie in python and i am trying to develop a simple webpage using jinja2.
can anyone please help me how to do that
> i am trying in this way but showing invalid syntax error
>
[...]
> <ul id="navigation">
> {% for item in navigation %}
> <li><a href="{{ item.href }}">{{ item.caption }}</a></li>
> {% endfor %}
> </ul>
>
> <h1>My Webpage</h1>
> {{ a_variable }}
[...]
>
Hello,
the jinja2 syntax is correct that way, see also this for reference for
variable naming:
http://jinja.pocoo.org/docs/templates/index.html#variables
The invalid syntax is raised when? Can you post the error a bit more
detailed, this will help giving you any advice.
If you know the code part raising the error and you post it, this will
also help.
Jan
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
can anyone help me in developing a simple webpage in jinja2 Satabdi Mukherjee <satamukh@gmail.com> - 2013-04-05 15:41 -0700 Re: can anyone help me in developing a simple webpage in jinja2 Jan Riechers <janpeterr@freenet.de> - 2013-04-06 10:15 +0300 Re: can anyone help me in developing a simple webpage in jinja2 Chris Angelico <rosuav@gmail.com> - 2013-04-06 19:00 +1100 Re: can anyone help me in developing a simple webpage in jinja2 Cousin Stanley <cousinstanley@gmail.com> - 2013-04-07 19:29 +0000
csiph-web