Skip to content

Instantly share code, notes, and snippets.

@inklesspen
Created October 14, 2009 20:31
Show Gist options
  • Select an option

  • Save inklesspen/210373 to your computer and use it in GitHub Desktop.

Select an option

Save inklesspen/210373 to your computer and use it in GitHub Desktop.
def render_action():
# actually getting the controller and action names from the environment is left as an exercise for the reader
controller = "foo"
action = "bar"
template_name = "%s/%s.mako" % (controller, action)
return render_mako(template_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment