Source

johnpaulett.bitbucket.org / django-beehat / template.html

Full commit
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Template &mdash; django-beehat v0.1.0 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.1.0',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="django-beehat v0.1.0 documentation" href="index.html" />
    <link rel="prev" title="Shortcuts" href="shortcuts.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="shortcuts.html" title="Shortcuts"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">django-beehat v0.1.0 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="template">
<h1>Template<a class="headerlink" href="#template" title="Permalink to this headline"></a></h1>
<div class="section" id="beehat-template-render">
<h2><a title="beehat.template.render" class="reference internal" href="#beehat.template.render"><tt class="xref docutils literal"><span class="pre">beehat.template.render()</span></tt></a><a class="headerlink" href="#beehat-template-render" title="Permalink to this headline"></a></h2>
<dl class="function">
<dt id="beehat.template.render">
<tt class="descclassname">beehat.template.</tt><tt class="descname">render</tt><big>(</big><em>template</em>, <em>context</em>, <em>request=None</em><big>)</big><a class="headerlink" href="#beehat.template.render" title="Permalink to this definition"></a></dt>
<dd><p>Helper function for rendering a template given a context.
Useful in custom template tags.  The template is the typical path to the
template file (e.g. &#8216;registration/login.html&#8217;).  The context is a dictionary
of data to provide the template.</p>
<p>If the optional <a title="(in Django v1.1)" class="reference external" href="http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest"><tt class="xref docutils literal"><span class="pre">django.http.HttpRequest</span></tt></a>, <tt class="docutils literal"><span class="pre">request</span></tt>, is provided, the
function will render the template using a <tt class="xref docutils literal"><span class="pre">django.template.RequestContext</span></tt>.</p>
</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="">Template</a><ul>
<li><a class="reference external" href="#beehat-template-render"><tt class="docutils literal"><span class="pre">beehat.template.render()</span></tt></a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="shortcuts.html"
                                  title="previous chapter">Shortcuts</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="_sources/template.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="shortcuts.html" title="Shortcuts"
             >previous</a> |</li>
        <li><a href="index.html">django-beehat v0.1.0 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2010, John Paulett.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
    </div>
  </body>
</html>