Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9200809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:51:00+00:00 2026-06-17T22:51:00+00:00

I am using Jinja2 with web.py and have come across what seems to be

  • 0

I am using Jinja2 with web.py and have come across what seems to be a simple problem. I am rendering my paramertized html files and can’t seem to figure out how to pass in multiple parameter=value pairs without typing each on in as arguments. I tried passing in a dict and list of strings with no success.

If I want to render home.html which has five parameters that need values, how can I pass in their values without having to type param1=value1, param2=value2 as arguments to the reder.home() function?

I was hoping something like this would work:

from web.contrib.template import render_jinja
render = render_jinja('templates', encoding = 'utf-8',)

p = {}
p['param1'] = 56
p['param2'] = 'something'
...

render.home(p)

PS. the web.py template examples seem to only cover the single param example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:51:01+00:00Added an answer on June 17, 2026 at 10:51 pm

    You can use dictionary expansion, like so

    render.home(**p)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a html template in python using Jinja2. I have
So, I have a django project that is using jinja2 rendering, and I also
I am using Jinja2 to generate HTML files which are typically very huge in
I'm using flask with a jinja2 template which includes another jinja2 template called buttons.html.
I have a web-app consisting of some html forms for maintaining some tables (SQlite,
I have managed to call python functions from jinja2 by using custom filters, but
I am having trouble using images, html files and javascript with Google App Engine.
I am using jinja2 templating language in my GAE-python project. I have tried to
I am using jinja2 to safely render templates for email messages from a web
I have started using Jinja2 as my templating engine on Google App Engine (in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.