starting up

This commit is contained in:
Rushabh Mehta
2012-01-25 11:04:54 +05:30
parent a8ad3907db
commit 9c7a01ade9
4 changed files with 10 additions and 7 deletions

View File

@@ -1,17 +1,17 @@
#!python
from webnotes.model.doc import getsingle
from jinja2 import Template
home_settings = getsingle('Home Settings')
html= """
temp = Template("""
<div class="layout_wrapper">
<div id="content-home">
%(banner_html)s
{{ home_settings.banner_html }}
</div>
</div>
""" % home_settings
""")
out = {
"content": html
"content": temp.render(home_settings = getsingle('Home Settings'))
}