Beispiel #1
0
def create(form):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'<div class="row">\n'])
    extend_([u'        <div class="span10 offset2">\n'])
    if not form.valid:
        extend_(['        ', u'<p class="error"> Try again.</p>\n'])
    extend_([u'        \n'])
    extend_([u'<form name="create" method="POST">\n'])
    extend_([u'        ', escape_(form.render(), False), u'\n'])
    extend_([u'</form>\n'])
    extend_([u'</div>\n'])
    extend_([u'</div>\n'])
    extend_([
        u'<script type="text/javascript" src="/static/tiny_mce/tiny_mce.js"></script>\n'
    ])
    extend_([u'<script type="text/javascript">\n'])
    extend_([u'        tinyMCE.init({\n'])
    extend_([u'                mode : "textareas",\n'])
    extend_([u'                theme: "simple",\n'])
    extend_([
        u'                plugins: "autolink,spellchecker,pagebreak,save",\n'
    ])
    extend_([u'\n'])
    extend_([u'                width : "100%",\n'])
    extend_([u'                height : "400"\n'])
    extend_([u'        });\n'])
    extend_([u'</script>\n'])

    return self
Beispiel #2
0
def final(greeting, greeting2):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<!DOCTYPE html>\n'])
    extend_([u'<center>\n'])
    extend_([u'<title>HN Birthday Countdown</title>\n'])
    extend_([
        u'<div style="background-color:#ff6600;min-height:25px;width:85%;">\n'
    ])
    extend_([u'</div>\n'])
    extend_(
        [u'<h1 style="font-family:Verdana;">HN Birthday Countdown!</h1>\n'])
    extend_(
        [u'<body style="font-family:Verdana;background-color:#f6f6ef;">\n'])
    extend_(
        [escape_(greeting, True), u'<br>',
         escape_(greeting2, True), u'\n'])
    extend_([u'</center>\n'])
    extend_([u'</body>\n'])
    extend_([
        u'<footer style="width:100%;height:28px;border-top:1px solid #000000;left:0px;text-align:center;position:absolute;bottom:0;font-size:8pt;">\n'
    ])
    extend_([
        u'Made by dev1n on HN using the very cool <a href="https://www.hnsearch.com/api">HNSearch</a> API\n'
    ])
    extend_([u'</footer>\n'])

    return self
Beispiel #3
0
def admin (user, posts):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<div id="adminContainer" class="row">\n'])
    extend_([u'    <div class="col-lg-12">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'            <h3>Logged in as <em>', escape_(user, True), u'</em></h3>\n'])
    extend_([u'            <a class="btn btn-primary" href="/new">New Post</a>\n'])
    extend_([u'            <a class="btn btn-danger" href="/logout">Log Out</a>\n'])
    extend_([u'            <hr>\n'])
    extend_([u'            <h3>Edit posts</h3>\n'])
    for post in loop.setup(posts):
        extend_(['                ', u'<div class="postlist">\n'])
        extend_(['                ', u'    <p><a href="/view/', escape_(post.url, True), u'">', escape_(post.title, True), u'</a> ', escape_(datestr(post.date), True), u'</p>\n'])
        extend_(['                ', u'    <ul class="list-inline">\n'])
        extend_(['                ', u'        <li><a class="btn btn-default" href="/edit/', escape_(post.url, True), u'">Edit</a></li>\n'])
        extend_(['                ', u'        <li><form action="/delete/', escape_(post.url, True), u'" method="post">\n'])
        extend_(['                ', u'            <input type="submit" class="btn btn-danger" value="Delete post" />\n'])
        extend_(['                ', u'        </form></li>\n'])
        extend_(['                ', u'    </ul>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #4
0
def header (title, menus):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    
    user = users.get_current_user()
    if user:
            logout_url = users.create_logout_url('/blog')
    else:
            login_url = users.create_login_url('/blog')
    
    
    extend_([u'<div class="navbar navbar-inverse navbar-fixed-top">\n'])
    extend_([u'      <div class="navbar-inner">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'          <a class="brand" href="#">', escape_(title, False), u'</a>\n'])
    extend_([u'          <div class="nav-collapse collapse">\n'])
    extend_([u'                          <ul class="nav">\n'])
    for m in loop.setup(menus):
        extend_(['                                ', u'    <li ><a href="', escape_(m, False), u'">', escape_(m, False), u'</a></li>\n'])
        extend_(['                                ', u'\n'])
    if user:
        extend_(['                                ', u'    <li><a href="', escape_(logout_url, False), u'">logout</a></li>\n'])
    else:
        extend_(['                                ', u'    <li><a href="', escape_(login_url, False), u'">login</a></li>\n'])
    extend_([u'            </ul>\n'])
    extend_([u'                </div><!--/.nav-collapse -->\n'])
    extend_([u'          </div>\n'])
    extend_([u'      </div>\n'])
    extend_([u'  </div>\n'])

    return self
Beispiel #5
0
def bio():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<div class="row">\n'])
    extend_([u'    <div id="bioPhoto" class="col-sm-6 jumbotron">\n'])
    extend_([u'        <img id="bioPic" src="/static/Images/me_surf.jpg" alt="bioPic" />\n'])
    extend_([u'    </div>\n'])
    extend_([u'    <div id="bioText" class="col-sm-6">\n'])
    extend_([u'            <h2>About Me</h2>\n'])
    extend_([u"            <p>Hello, my name is Matthew Iannucci. I am an Engineer from Rhode Island with a Bachelor's of Science in Ocean Engineering from the University of Rhode Island. I focused on software development and robotics. I currently work as an Engineer at Navatek, Ltd.</p>\n"])
    extend_([u'            <p>I enjoy surfing and skiing in my free time, as well as working on many different software projects.</p>\n'])
    extend_([u'            <ul class="list-inline">\n'])
    extend_([u'                <li><a href="/resume">Resume</a>\n'])
    extend_([u'                </li>\n'])
    extend_([u'                <li><a href="https://github.com/mpiannucci">Github</a>\n'])
    extend_([u'                </li>\n'])
    extend_([u'                <li><a href="mailto:[email protected]">Email</a>\n'])
    extend_([u'                </li>\n'])
    extend_([u'                <li><a href="http://www.linkedin.com/pub/matthew-iannucci/7a/884/64a/">LinkedIn</a>\n'])
    extend_([u'                </li>\n'])
    extend_([u'            </ul>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #6
0
def apps():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<div class="row">\n'])
    extend_([u'<div id="HackWindsCols" class="col-lg-12 jumbotron hackwinds-jumbotron">\n'])
    extend_([u'    <div class="container">\n'])
    extend_([u'        <div class="col-sm-2">\n'])
    extend_([u'            <img class="img-responsive apps-page-screenshot" src="/static/Images/hackwinds-logo.png" />\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <div class="col-sm-10">\n'])
    extend_([u'            <h1>HackWinds</h1>\n'])
    extend_([u'            <p>The easiest way to check the surf in Rhode Island</p>\n'])
    extend_([u'            <a href="/hackwinds" class="btn btn-primary">Download it Now!</a>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'<div id="RhodyCastCols" class="col-lg-12 jumbotron rhodycast-jumbotron">\n'])
    extend_([u'    <div class="container">\n'])
    extend_([u'        <div class="col-sm-2">\n'])
    extend_([u'            <img class="img-responsive" src="/static/Images/rhodycast-logo.png" />\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <div class="col-sm-10">\n'])
    extend_([u'            <h1>RhodyCast</h1>\n'])
    extend_([u'            <p>Simple Rhode Island surf forecasting web site using NOAA WaveWatch III</p>\n'])
    extend_([u'            <a href="https://rhodycast.appspot.com" class="btn btn-primary">Check It Out</a>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'<div id="SwellScoreCols" class="col-lg-12 jumbotron swellscore-jumbotron">\n'])
    extend_([u'    <div class="container">\n'])
    extend_([u'        <div class="col-sm-2">\n'])
    extend_([u'            <img class="img-responsive" src="/static/Images/swellscore-logo.png" />\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <div class="col-sm-10">\n'])
    extend_([u'            <h1>SwellScore</h1>\n'])
    extend_([u'            <p>Track your surf sessions and observations so you know the best spot for future swells</p>\n'])
    extend_([u'            <a href="https://swellscore-1093.appspot.com" class="btn btn-primary">Learn More</a>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'<div id="MapgetterCols" class="col-lg-12 jumbotron mapgetter-jumbotron">\n'])
    extend_([u'    <div class="container">\n'])
    extend_([u'        <h1>MapGetter</h1>\n'])
    extend_([u'        <p>Get static images of a central area with coordinates in meters</p>\n'])
    extend_([u'        <a href="http://mapgetter.mpiannucci.com" class="btn btn-primary">Try It!</a>\n'])
    extend_([u'        <a href="https://github.com/mpiannucci/MapGetter" class="btn btn-info">View the Source</a>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'<div id="OtherCols" class="col-lg-12 jumbotron github-jumbotron">\n'])
    extend_([u'    <div class="container">\n'])
    extend_([u'        <h2>Other</h2>\n'])
    extend_([u'        <p>To view many of my smaller projects and medlings of mine, feel free to browse my projects on Github.</p>\n'])
    extend_([u'        <a class="btn btn-primary" href="/github">View My Github Here</a>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #7
0
def index():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'ADMIN\n'])

    return self
Beispiel #8
0
def readme():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'python web/template.py --compile templates\n'])

    return self
Beispiel #9
0
def post_form (form, action):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<form action="POST">\n'])
    extend_([u'        ', escape_(form.render(), True), u'\n'])
    extend_([u'</form>\n'])
    extend_([u'<script type="text/javascript" src="/static/tiny_mce/tiny_mce.js></script>\n'])

    return self
Beispiel #10
0
def footer():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<div class="row">\n'])
    extend_([u'                <div class="span10 offset2" style="text-align:center">\n'])
    extend_([u'                                <hr/>\n'])
    extend_([u'                                <p>Copyright &copy; Sett Wai. Some Rights Reserved.</p>\n'])
    extend_([u'                                <p>     View this site on <a href="http://github.com/sw00/rigmarolesoup">GitHub</a></p></div>\n'])
    extend_([u'                                                                            </div>\n'])

    return self
Beispiel #11
0
def login_fail (form):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<h1>Admin Login</h1>\n'])
    extend_([u'<form action="" method="post">\n'])
    extend_([escape_(form.render(), False), u'\n'])
    extend_([u'</form>\n'])
    extend_([u'<hr>\n'])
    extend_([u'<div id="failedlogin"><h2><font color="red">Invalid Username or Password</font></div>\n'])

    return self
Beispiel #12
0
def index():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    posts = getAllReports()
    extend_([u'\n'])
    for post in loop.setup(posts):
        extend_([escape_(post.date, True), u'\n'])
        extend_([escape_(post.temperature, True), u'\n'])
        extend_([escape_(post.humidity, True), u'\n'])
        extend_([u'<hr>\n'])

    return self
Beispiel #13
0
def solver(answers, clue, err_msg):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    if err_msg:
        extend_([u'    ', escape_(err_msg, False), u'\n'])
    else:
        if answers is not None:
            extend_(['    ', u'    <div id="answer_nav">\n'])
            extend_(['    ', u'    <div id="similarities">\n'])
            extend_(['    ', u'    <b>Score</b><br>\n'])
            for (sim, ans) in loop.setup(answers.sorted_answers()):
                extend_([
                    '        ', u'    ',
                    escape_("{:.0%}".format(sim), True), u' <br>\n'
                ])
            extend_(['    ', u'    </div>\n'])
            extend_(['    ', u'    <div id="answers">\n'])
            extend_(['    ', u'    <b>Answer</b><br>\n'])
            for (sim, ans) in loop.setup(answers.sorted_answers()):
                extend_([
                    '        ', u'    <a href="#ans_header_',
                    escape_(ans, True), u'">',
                    escape_(ans, True), u'</a> <br>\n'
                ])
            extend_(['    ', u'    </div>\n'])
            extend_(['    ', u'    </div>\n'])
            extend_(['    ', u'    <div id="derivations">\n'])
            for (sim, ans) in loop.setup(answers.sorted_answers()[:200]):
                extend_([
                    '                ', u'    <div id="ans_header_',
                    escape_(ans, True), u'"><h2>',
                    escape_(ans, True), u': ',
                    escape_("{:.0%}".format(sim), True), u' </h2>\n'
                ])
                for ann in loop.setup(answers.answer_derivations[ans][:5]):
                    extend_([
                        '                    ', u'    ',
                        escape_(ann.derivation(), True), u' <br>\n'
                    ])
                    extend_([
                        '                    ', u'    ',
                        escape_(ann.long_derivation(), True), u' <br><br>\n'
                    ])
                extend_(['                ', u'    </div>\n'])
            extend_(['    ', u'    </div>\n'])

    return self
Beispiel #14
0
def login (user, form):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<p>You are not logged in.</p>\n'])
    extend_([u'        <p>\n'])
    extend_([u'        <form name="login" method="POST"> \n'])
    extend_([u'        ', escape_(form.render(), False), u'\n'])
    extend_([u'        <input type="submit" name="button" value="Login" />\n'])
    extend_([u'        </form>\n'])
    extend_([u'    </p>\n'])
    extend_([u'    <p> user: '******'</p>\n'])
    extend_([u'\n'])

    return self
Beispiel #15
0
def view (post):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-12">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'        <h1>', escape_(post.title, True), u'</h1>\n'])
    extend_([u'        <h3>', escape_(datestr(post.date), True), u'</h3>\n'])
    extend_([u'        <hr>\n'])
    extend_([u'        ', escape_(post.content, False), u'\n'])
    extend_([u'        <br/>\n'])
    extend_([u'        <div id="links" class="links">\n'])
    extend_([u'            <ul class="list-inline">\n'])
    extend_([u'                <li><a href="/view/', escape_(post.url, True), u'">Link</a></li>\n'])
    extend_([u'                <li>\n'])
    extend_([u'                    Tags: &nbsp;\n'])
    for tag in loop.setup(post.tag):
        extend_(['                    ', u'<a href="/tag/', escape_(tag, True), u'">', escape_(tag, True), u'</a>\n'])
    extend_([u'                </li>\n'])
    extend_([u'            </ul>\n'])
    extend_([u'        </div>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'<br/>\n'])
    extend_([u'<div id="commentSection">\n'])
    extend_([u'    <div class="container">\n'])
    extend_([u'    <div id="disqus_thread"></div>\n'])
    extend_([u'    <script type="text/javascript">\n'])
    extend_([u'        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */\n'])
    extend_([u"        var disqus_shortname = 'matthewiannucci'; // required: replace example with your forum shortname\n"])
    extend_([u'\n'])
    extend_([u"        /* * * DON'T EDIT BELOW THIS LINE * * */\n"])
    extend_([u'        (function() {\n'])
    extend_([u"            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;\n"])
    extend_([u"            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';\n"])
    extend_([u"            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);\n"])
    extend_([u'        })();\n'])
    extend_([u'    </script>\n'])
    extend_([u'    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>\n'])
    extend_([u'    <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>\n'])
    extend_([u'</div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #16
0
def new (form):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-12">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'            <h1>New Blog Post</h1>\n'])
    extend_([u'            <form action="" method="post">\n'])
    extend_([u'                ', escape_(form.render_css(), False), u'\n'])
    extend_([u'            </form>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #17
0
def blog(posts):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'<div class="row">\n'])
    extend_([u'        <div class="span8 offset2">\n'])
    extend_([u'                <h2>Blog Posts</h2>\n'])
    extend_([u'                <div class="pull-right">\n'])
    extend_([
        u'                        <button class="btn btn-action" >create</button>\n'
    ])
    extend_([u'                </div>\n'])
    extend_([u'                <table class="table table-striped">\n'])
    extend_([u'                        <tr>\n'])
    extend_([u'                                <th>date</th>\n'])
    extend_([u'                                <th>title</th>\n'])
    extend_([u'                                <th>edit</td>\n'])
    extend_([u'                                <th>delete</td>\n'])
    extend_([u'                        </tr>\n'])
    for p in loop.setup(posts):
        extend_(['                        ', u'    <tr>\n'])
        extend_([
            '                        ', u'            <td>',
            escape_(p.created, True), u'</td>\n'
        ])
        extend_([
            '                        ', u'            <td>',
            escape_(p.title, True), u'</td>\n'
        ])
        extend_([
            '                        ',
            u'            <td><a href="#edit">edit</ad></td>\n'
        ])
        extend_([
            '                        ',
            u'            <td><a href="#delete">[x]</a></td>\n'
        ])
        extend_(['                        ', u'    </tr>\n'])
    extend_([u'                </table>\n'])
    extend_([u'        </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #18
0
def edit (post, form):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-12">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'            <h1>Edit Post: ', escape_(form.d.title, True), u'</h1>\n'])
    extend_([u'            <form action="" method="post">\n'])
    extend_([u'                ', escape_(form.render_css(), False), u'\n'])
    extend_([u'            </form>\n'])
    extend_([u'            <form action="/delete/', escape_(post.url, True), u'" method="post">\n'])
    extend_([u'                <input type="submit" value="Delete post" class="btn btn-danger" style="margin-top:10px;" />\n'])
    extend_([u'            </form>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #19
0
def confirm_payment():
    loop = ForLoop()
    _dummy = CompiledTemplate(lambda: None, "dummy")
    join_ = _dummy._join
    escape_ = _dummy._escape

    def __template__(transaction):
        yield 'title', join_('Confirm Payment')
        yield '', join_('\n')
        yield '', join_('<h1>Payment Result</h1>\n')
        yield '', join_('\n')
        yield '', join_('<div>Thank you for your payment.</div>\n')
        yield '', join_('\n')
        yield '', join_('<h2>Transaction Details</h2>\n')
        yield '', join_('\n')
        yield '', join_('<table>\n')
        yield '', join_('    <tr><td>Amount:</td><td>', '$',
                        '100.00</td></tr>\n')
        yield '', join_('    <tr><td>Transaction ID:</td><td>',
                        escape_(transaction.id, True), '</td></tr>\n')
        yield '', join_('    <tr><td>First Name:</td><td>',
                        escape_(transaction.customer_details.first_name, True),
                        '</td></tr>\n')
        yield '', join_('\n')
        yield '', join_('    <tr><td>Last Name:</td><td>',
                        escape_(transaction.customer_details.last_name, True),
                        '</td></tr>\n')
        yield '', join_('    <tr><td>Email:</td><td>',
                        escape_(transaction.customer_details.email, True),
                        '</td></tr>\n')
        yield '', join_(
            '    <tr><td>Credit Card:</td><td>',
            escape_(transaction.credit_card_details.masked_number, True),
            '</td></tr>\n')
        yield '', join_(
            '    <tr><td>Card Type:</td><td>',
            escape_(transaction.credit_card_details.card_type, True),
            '</td></tr>\n')
        yield '', join_('</table>\n')

    return __template__
Beispiel #20
0
def layout():
    loop = ForLoop()
    _dummy = CompiledTemplate(lambda: None, "dummy")
    join_ = _dummy._join
    escape_ = _dummy._escape

    def __template__(page):
        yield '', join_('\n')
        yield '', join_('<html>\n')
        yield '', join_('  <head>\n')
        yield '', join_('    <title>', escape_(page.title, True), '</title>\n')
        yield '', join_(
            '    <link rel="stylesheet" type="text/css" href="/static/styles.css" />\n'
        )
        yield '', join_('  </head>\n')
        yield '', join_('  <body>\n')
        yield '', join_('    ', escape_(page, False), '\n')
        yield '', join_('  </body>\n')
        yield '', join_('</html>\n')

    return __template__
Beispiel #21
0
def new_payment():
    loop = ForLoop()
    _dummy = CompiledTemplate(lambda: None, "dummy")
    join_ = _dummy._join
    escape_ = _dummy._escape

    def __template__(form, error_count, url):
        yield 'title', join_('New Payment')
        yield '', join_('\n')
        yield '', join_('<h1>Payment: ', '$', '100.00</h1>\n')
        yield '', join_('\n')
        if error_count > 0:
            yield '', join_('<h3 id="error-count">',
                            escape_(error_count, True), ' error(s)</h3>\n')
            yield '', join_('\n')
        yield '', join_('<form action="', escape_(url, True),
                        '" method="post" autocomplete="off">\n')
        yield '', join_('  ', escape_(form.render(), False), '\n')
        yield '', join_('  <input type="submit" value="Submit" />\n')
        yield '', join_('</form>\n')

    return __template__
Beispiel #22
0
def index():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-12 jumbotron jumbotron-index">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'            <h1 class="welcomeMessage">Hello, I\'m Matt</h1>\n'])
    extend_([u'\n'])
    extend_([u"            <p>I am an Engineer from Rhode Island with a Bachelor's of Science in Ocean Engineering from the University of Rhode Island. Growing up in Rhode Island, I was drawn to the ocean. While my heart still lives with the sea, my interests shifted in college, driving me towards electronics and software development. I have forged my own path by layering software development talent on top of traditional engineering principles.</p>\n"])
    extend_([u'\n'])
    extend_([u'            <p>I have worked on a variety of projects including autonomous robotic boats, embedded wireless bridge health monitoring systems, mobile apps, and Naval Ship design software.</p>\n'])
    extend_([u'\n'])
    extend_([u'            <a href="/resume" class="btn btn-primary bio-buttons">Resume</a>\n'])
    extend_([u'            <a href="https://github.com/mpiannucci" class="btn btn-primary bio-buttons">Github</a>\n'])
    extend_([u'            <a href="mailto:[email protected]" class="btn btn-primary bio-buttons">Email</a>\n'])
    extend_([u'            <a href="http://www.linkedin.com/pub/matthew-iannucci/7a/884/64a/" class="btn btn-primary bio-buttons">LinkedIn</a>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #23
0
def preview(d):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'<div row>\n'])
    extend_([u'        <div class="span10">\n'])
    extend_([u'                <article>\n'])
    extend_([u'                <h3>', escape_(d.title, True), u'</h3>\n'])
    extend_(
        [u'                <small>',
         escape_(d.category, True), u'</small>\n'])
    extend_([u'                <section class="content">\n'])
    extend_([u'                ', escape_(d.content, False), u'\n'])
    extend_([u'                </section>\n'])
    extend_([u'                <footer>\n'])
    extend_([u'                        <p>', escape_(d.tags, True), u'</p>\n'])
    extend_([u'                </footer>\n'])
    extend_([u'                </article>\n'])
    extend_([u'        </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #24
0
def tagged (tag, posts):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-12">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'            <h1>Posts tagged <em>"', escape_(tag, True), u'"</em></h1>\n'])
    extend_([u'            <hr> \n'])
    for post in loop.setup(posts):
        extend_(['                ', u'<ul class="list-inline">\n'])
        extend_(['                ', u'    <li>\n'])
        extend_(['                ', u'        <h3 class="links"><a href="/view/', escape_(post.url, True), u'">', escape_(post.title, True), u'</a></h3>\n'])
        extend_(['                ', u'    </li>\n'])
        extend_(['                ', u'    <li>\n'])
        extend_(['                ', u'        <h3 id="archiveTime">&nbsp; ', escape_(datestr(post.date), True), u'</h3>\n'])
        extend_(['                ', u'    </li>\n'])
        extend_(['                ', u'</ul>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])

    return self
Beispiel #25
0
def register(form):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'<!DOCTYPE html>\n'])
    extend_([u'<title>HN Birthday Countdown</title>\n'])
    extend_([u'<center>\n'])
    extend_([
        u'<div style="background-color:#ff6600;min-height:25px;width:85%;">\n'
    ])
    extend_([u'</div>\n'])
    extend_(
        [u'<h1 style="font-family:Verdana;">HN Birthday Countdown!</h1>\n'])
    extend_(
        [u'<body style="font-family:Verdana;background-color:#f6f6ef;">\n'])
    extend_([
        u'Your HN Birthday is the day you created an account on HN!<br>To find out how long\n'
    ])
    extend_([u'until your next HN Birthday, enter your username below!\n'])
    extend_([u'<form method="POST">\n'])
    extend_([u'    ', escape_(form.render(), False), u'\n'])
    extend_([u'</form>\n'])
    extend_([u'</body>\n'])
    extend_([u'</center>\n'])
    extend_([u'<center>\n'])
    extend_([
        u'<footer style="width:100%;height:28px;border-top:1px solid #000000;left:0px;text-align:center;position:absolute;bottom:0;font-size:8pt;">\n'
    ])
    extend_([
        u'Made by dev1n on HN using the very cool <a href="https://www.hnsearch.com/api">HNSearch</a> API\n'
    ])
    extend_([u'</footer>\n'])
    extend_([u'</center>\n'])

    return self
Beispiel #26
0
def layout(content):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<!DOCTYPE html>\n'])
    extend_([u'<html lang="en">\n'])
    extend_([u'  <head>\n'])
    extend_([u'    <meta charset="utf-8">\n'])
    extend_([u'    <title>rigmarole soup</title>\n'])
    extend_([
        u'    <meta name="viewport" content="width=device-width, initial-scale=1.0">\n'
    ])
    extend_([u'    <meta name="description" content="">\n'])
    extend_([u'    <meta name="author" content="">\n'])
    extend_([u'\n'])
    extend_([u'    <!-- Le styles -->\n'])
    extend_([
        u'    <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">\n'
    ])
    extend_([u'    <style>\n'])
    extend_([u'      body {\n'])
    extend_([
        u'        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */\n'
    ])
    extend_([u'      }\n'])
    extend_([u'    </style>\n'])
    extend_([
        u'    <link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">\n'
    ])
    extend_([u'\n'])
    extend_(
        [u'    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->\n'])
    extend_([u'    <!--[if lt IE 9]>\n'])
    extend_([
        u'      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>\n'
    ])
    extend_([u'    <![endif]-->\n'])
    extend_([u'\n'])
    extend_([u'    <!-- Le fav and touch icons -->\n'])
    extend_([u'    <link rel="shortcut icon" href="favicon.ico">\n'])
    extend_([
        u'    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/bootstrap/ico/apple-touch-icon-144-precomposed.png">\n'
    ])
    extend_([
        u'    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/bootstrap/ico/apple-touch-icon-114-precomposed.png">\n'
    ])
    extend_([
        u'    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/bootstrap/ico/apple-touch-icon-72-precomposed.png">\n'
    ])
    extend_([
        u'    <link rel="apple-touch-icon-precomposed" href="/static/bootstrap/ico/apple-touch-icon-57-precomposed.png">\n'
    ])
    extend_([u'  </head>\n'])
    extend_([u'\n'])
    extend_([u'  <body>\n'])
    extend_([u'\n'])
    extend_([u'    <div class="navbar navbar-inverse navbar-fixed-top">\n'])
    extend_([u'      <div class="navbar-inner">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([
        u'          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">\n'
    ])
    extend_([u'            <span class="icon-bar"></span>\n'])
    extend_([u'            <span class="icon-bar"></span>\n'])
    extend_([u'            <span class="icon-bar"></span>\n'])
    extend_([u'          </a>\n'])
    extend_([u'          <a class="brand" href="#">rigmarole soup</a>\n'])
    extend_([u'          <div class="nav-collapse collapse">\n'])
    extend_([u'            <ul class="nav">\n'])
    extend_([u'              <li class="active"><a href="#">Home</a></li>\n'])
    extend_([u'              <li><a href="#about">About</a></li>\n'])
    extend_([u'              <li><a href="#contact">Contact</a></li>\n'])
    extend_([u'            </ul>\n'])
    extend_([u'          </div><!--/.nav-collapse -->\n'])
    extend_([u'        </div>\n'])
    extend_([u'      </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'\n'])
    extend_([u'    <div class="container">\n'])
    extend_([u'\n'])
    extend_([u'      ', escape_(content, False), u'\n'])
    extend_([u'\n'])
    extend_([u'    </div> <!-- /container -->\n'])
    extend_([u'\n'])
    extend_([u'    <!-- Le javascript\n'])
    extend_([u'    ================================================== -->\n'])
    extend_([
        u'    <!-- Placed at the end of the document so the pages load faster -->\n'
    ])
    extend_([u'    <script src="static/js/jquery-1.8.2.min.js"></script>\n'])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-transition.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-alert.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-modal.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-scrollspy.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-tab.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-tooltip.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-popover.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-button.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-collapse.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-carousel.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/bootstrap/js/bootstrap-typeahead.js"></script>\n'
    ])
    extend_([u'\n'])
    extend_([u'  </body>\n'])
    extend_([u'</html>\n'])
    extend_([u'\n'])

    return self
Beispiel #27
0
def index():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'<%inherit file="layout.html"/>\n'])
    extend_([u'\n'])
    extend_([u'<section id="content">\n'])
    extend_([u'<div class="row">\n'])
    extend_([u'                        <div class="span10">\n'])
    extend_([u'                <h1>rigmarole soup</h1>\n'])
    extend_([u'        </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'        \n'])
    extend_([u'<div class="row">\n'])
    extend_([u'        <div class="span4">\n'])
    extend_([u'                <img src="" class="img-roundeed" />\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <div class="span10 pull-left">\n'])
    extend_([u'                <ul class="thumbnails">\n'])
    extend_([u'                        <li class="span4">\n'])
    extend_([u'                        <div class="thumbnail">\n'])
    extend_([
        u'                                <h3><a href="/blog">blog</a></h3>\n'
    ])
    extend_([
        u'                                <p>Lots of malarkey and opinions.</p>\n'
    ])
    extend_([u'                        </div>\n'])
    extend_([u'                        </li>\n'])
    extend_([u'                        <li class="span4">\n'])
    extend_([u'                                <div class="thumbnail">\n'])
    extend_([
        u'                                        <h3><a href="http://www.github.com/sw00">code</a></h3>\n'
    ])
    extend_([
        u'                                        <p>My Github repositories.</p>\n'
    ])
    extend_([u'                                </div>\n'])
    extend_([u'                                </li>\n'])
    extend_([u'                                <li class="span4">\n'])
    extend_([u'                                <div class="thumbnail">\n'])
    extend_([
        u'                                        <h3><a href="http://flickr.com/settface">photos</a></h3>\n'
    ])
    extend_([u'                                        <p>My flickr</p>\n'])
    extend_([u'                                </div>\n'])
    extend_([u'                                </li>\n'])
    extend_([u'                                <li class="span4">\n'])
    extend_([u'                                <div class="thumbnail">\n'])
    extend_([
        u'                                        <h3><a href="/social">social</a></h3>\n'
    ])
    extend_([
        u'                                        <p>Twitter, Facebook, Google+, Last.fm.</p>\n'
    ])
    extend_([u'                                </div>\n'])
    extend_([u'                                </li>\n'])
    extend_([u'                </ul>                   \n'])
    extend_([u'        </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'</section>\n'])
    extend_([u'\n'])
    extend_([u'<%include file="footer.html"/>\n'])

    return self
Beispiel #28
0
def base(page):
    __lineoffset__ = -4
    loop = ForLoop()
    self = TemplateResult()
    extend_ = self.extend
    extend_([u'\n'])
    extend_([u'<html>\n'])
    extend_([u'<head>\n'])
    extend_([
        u'    <meta name="viewport" content="width=device-width, initial-scale=1">\n'
    ])
    extend_([u'    <title>PiMonitor</title>\n'])
    extend_([
        u'    <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico" />\n'
    ])
    extend_([
        u'    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">\n'
    ])
    extend_([
        u'    <link rel="stylesheet" type="text/css" href="/static/pimonitor.css" />\n'
    ])
    extend_([
        u'    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n'
    ])
    extend_([
        u'    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>\n'
    ])
    extend_([
        u'    <script src="/static/Scripts/pimonitor.js" type="text/javascript"></script>\n'
    ])
    extend_([u'</head>\n'])
    extend_([u'\n'])
    extend_([u'<body>\n'])
    extend_([u'    <!-- Navigation Bar -->\n'])
    extend_([
        u'    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">\n'
    ])
    extend_([u'        <div class="container">\n'])
    extend_([
        u'            <!-- Brand and toggle get grouped for better mobile display -->\n'
    ])
    extend_([u'            <div class="navbar-header">\n'])
    extend_([
        u'                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">\n'
    ])
    extend_([
        u'                    <span class="sr-only">Toggle navigation</span>\n'
    ])
    extend_([u'                    <span class="icon-bar"></span>\n'])
    extend_([u'                    <span class="icon-bar"></span>\n'])
    extend_([u'                    <span class="icon-bar"></span>\n'])
    extend_([u'                </button>\n'])
    extend_([
        u'                <a class="navbar-brand" href="http://blog.mpiannucci.com/">Matthew Iannucci</a>\n'
    ])
    extend_([u'            </div>\n'])
    extend_([
        u'            <!-- Collect the nav links, forms, and other content for toggling -->\n'
    ])
    extend_([
        u'            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">\n'
    ])
    extend_([u'                <ul class="nav navbar-nav">\n'])
    extend_([u'                    <li>\n'])
    extend_([
        u'                        <a href="http://blog.mpiannucci.com/blog">Blog</a>\n'
    ])
    extend_([u'                    </li>\n'])
    extend_([u'                    <li>\n'])
    extend_([
        u'                        <a href="http://blog.mpiannucci.com/apps">Projects</a>\n'
    ])
    extend_([u'                    </li>\n'])
    extend_([u'                    <li>\n'])
    extend_([
        u'                        <a href="http://blog.mpiannucci.com/bio">About</a>\n'
    ])
    extend_([u'                    </li>\n'])
    extend_([u'                </ul>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <!-- /.navbar-collapse -->\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <!-- /.container -->\n'])
    extend_([u'    </nav>\n'])
    extend_([
        u'<!--     <header class="jumbotron map_jumbotron" id="mainheader">\n'
    ])
    extend_([u'        <div  class="container">\n'])
    extend_([u'            <h1>MapGetter</h1>\n'])
    extend_([
        u'            <p>Get static images of a central area with coordinates in meters</p>\n'
    ])
    extend_([u'            <em>Images courtesy of Google Maps</em>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </header> -->\n'])
    extend_([u'    <div  class="container">\n'])
    extend_([u'        <div class="row">\n'])
    extend_(
        [u'            <div class="col-sm-12 text-center" id="mapImage">\n'])
    extend_([u'                ', escape_(page, False), u'\n'])
    extend_([u'            </div>\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <div class="row">\n'])
    extend_(
        [u'            <div class="col-sm-12 text-center" id="mainfooter">\n'])
    extend_([u'                <p>Copyright 2015, Matthew Iannucci</p>\n'])
    extend_([u'            </div>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</body>\n'])
    extend_([u'</html>\n'])

    return self
Beispiel #29
0
def hackwinds():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<!-- Jumbotron Header -->\n'])
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-12 jumbotron hackwinds-jumbotron hackwinds-landing">\n'])
    extend_([u'        <div class="col-lg-6">\n'])
    extend_([u'            <img class="hackwinds_landing_screenshots" src="/static/Images/hackwinds-landing.png" />\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <div class="col-lg-6">\n'])
    extend_([u'            <h1>HackWinds</h1>\n'])
    extend_([u'            <p>The easiest way to check the waves in Rhode Island</p>\n'])
    extend_([u'            <a href="https://geo.itunes.apple.com/us/app/hackwinds/id945847570?mt=8" style="display:inline-block;overflow:hidden;background:url(http://linkmaker.itunes.apple.com/images/badges/en-us/badge_appstore-lrg.svg) no-repeat;width:165px;height:40px;"></a>\n'])
    extend_([u'            <br/>\n'])
    extend_([u'            <a href="https://play.google.com/store/apps/details?id=com.nucc.hackwinds&hl=en&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/apps/en-play-badge.png" style="width:135px;"/></a>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-3 hackwinds-feature-col">\n'])
    extend_([u'        <span class="glyphicon glyphicon-picture"></span>\n'])
    extend_([u'        <h3>Live HD Images</h2>\n'])
    extend_([u'        <p>View the HD camera images straight from Narragansett Beach wherever you are, curtesy of <a href="http://www.warmwinds.com/">Warm Winds Surf Shop</a></p>\n'])
    extend_([u'    </div>\n'])
    extend_([u'    <div class="col-lg-3 hackwinds-feature-col">\n'])
    extend_([u'        <span class="glyphicon glyphicon-tasks"></span>\n'])
    extend_([u'        <h3>5 Day Forecast</h3>\n'])
    extend_([u'        <p>Get the latest forecast information for the upcoming 7 days straight from <a href="http://forecast.mpiannucci.com">RhodyCast</a>, the only surf forecast made exclusively for Rhode Island</p>\n'])
    extend_([u'    </div>\n'])
    extend_([u'    <div class="col-lg-3 hackwinds-feature-col">\n'])
    extend_([u'        <span class="glyphicon glyphicon-stats"></span>\n'])
    extend_([u'        <h3>Live Buoy Data</h3>\n'])
    extend_([u'        <p>Get the latest NOAA buoy reports, showing the current swell in the water. Convienently view the current wave spectra breakdown from Block Island, Montauk, and Nantucket.</p>\n'])
    extend_([u'    </div>\n'])
    extend_([u'    <div class="col-lg-3 hackwinds-feature-col">\n'])
    extend_([u'        <span class="glyphicon glyphicon-calendar"></span>\n'])
    extend_([u'        <h3>Tide Information</h3>\n'])
    extend_([u'        <p>View the upcoming tides, as well as the sunrise and sunset for the day so you can plan whether to dawn patrol or leave work early.</p>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'\n'])
    extend_([u'<!-- Page Features -->\n'])
    extend_([u'<!-- <div class="row text-center ">\n'])
    extend_([u'    <div class="col-lg-12 hero-feature">\n'])
    extend_([u'        <h1>Features</h1>\n'])
    extend_([u'        <ul class="nav nav-pills center-pills">\n'])
    extend_([u'            <li class="active"><a data-toggle="tab" href="#iosScreenshots">iOS</a></li>\n'])
    extend_([u'            <li><a data-toggle="tab" href="#androidScreenshots">Android</a></li>\n'])
    extend_([u'        </ul>\n'])
    extend_([u'    </div>\n'])
    extend_([u'    <div class="tab-content">\n'])
    extend_([u'        <div class="tab-pane active" id="iosScreenshots">\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-ios-live.png" alt="Live Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Live Beach View</h3>\n'])
    extend_([u'                        <p>View the HD camera images straight from Narragansett Beach wherever you are.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-ios-forecast.png" alt="Forecast Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>5 Day Forecast</h3>\n'])
    extend_([u'                        <p>Get the latest forecast information for the upcoming 7 days straight from <a href="http://forecast.mpiannucci.com">RhodyCast</a>.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-ios-chart.png" alt="Detail Forecast Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Animated Forecast Charts</h3>\n'])
    extend_([u'                        <p>View animated wave, wind, and period forecast charts for each day of the upcoming week.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-offset-2 col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-ios-buoy.png" alt="Buoy Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Live Buoy Data</h3>\n'])
    extend_([u'                        <p>Get the latest NOAA buoy reports, showing the current swell in the water. Convienently view the current wave spectra breakdown from Block Island, Montauk, and Nantucket.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-ios-tide.png" alt="Tide Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Tide Information</h3>\n'])
    extend_([u'                        <p>View the upcoming tides, as well as the sunrise and sunset for the upcoming 4 days so you can plan whether to dawn patrol or leave work early.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'        </div>\n'])
    extend_([u'        <div class="tab-pane" id="androidScreenshots">\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-android-live.png" alt="Live Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Live Beach View</h3>\n'])
    extend_([u'                        <p>View the HD camera images straight from Narragansett Beach wherever you are.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-android-forecast.png" alt="Forecast Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>7 Day Forecast</h3>\n'])
    extend_([u'                        <p>Get the latest forecast information for the upcoming 7 days straight from <a href="http://forecast.mpiannucci.com">RhodyCast</a>.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-android-chart.png" alt="Charts Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Animated Forecast Charts</h3>\n'])
    extend_([u'                        <p>View animated wave, wind, and period forecast charts for each day of the upcoming week.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-offset-2 col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-android-buoy.png" alt="Buoy Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Live Buoy Data</h3>\n'])
    extend_([u'                        <p>Get the latest NOAA buoy reports, showing the current swell in the water. Convienently view the current wave spectra breakdown from Block Island, Montauk, and Nantucket.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'            <div class="col-md-4 col-sm-6 hero-feature">\n'])
    extend_([u'                <div class="thumbnail">\n'])
    extend_([u'                    <img class="hackwinds_landing_screenshots" src="/static/Images/Screenshots/hackwinds-android-tide.png" alt="Tide Screenshot">\n'])
    extend_([u'                    <div class="caption">\n'])
    extend_([u'                        <h3>Tide Information</h3>\n'])
    extend_([u'                        <p>View the upcoming tides, as well as the sunrise and sunset for the day so you can plan whether to dawn patrol or leave work early.</p>\n'])
    extend_([u'                    </div>\n'])
    extend_([u'                </div>\n'])
    extend_([u'            </div>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div> -->\n'])
    extend_([u'<!-- /.row -->\n'])
    extend_([u'<!-- Github -->\n'])
    extend_([u'<div class="row">\n'])
    extend_([u'    <div class="col-lg-12 text-center jumbotron">\n'])
    extend_([u'        <div class="container">\n'])
    extend_([u'            <h1 id="githubHeader">Open Source</h1>\n'])
    extend_([u"            <p>Both the Android and iOS versions of the app are totally open sourced! Hack away and add any features you want to see in the app, and I'll be happy to add them in. Or simply help development by reporting bugs or possible new features.</p>\n"])
    extend_([u'            <a href="https://github.com/mpiannucci/HackWinds-iOS" class="btn btn-info hackwinds-github-button">View the iOS Source</a>\n'])
    extend_([u'            <a href="https://github.com/mpiannucci/HackWinds-Android" class="btn btn-info hackwinds-github-button">View the Android Source</a>\n'])
    extend_([u'        </div>\n'])
    extend_([u'    </div>\n'])
    extend_([u'</div>\n'])
    extend_([u'<!-- /.row -->\n'])

    return self
Beispiel #30
0
def layout():
    __lineoffset__ = -5
    loop = ForLoop()
    self = TemplateResult(); extend_ = self.extend
    extend_([u'<!DOCTYPE html>\n'])
    extend_([u'<html lang="en">\n'])
    extend_([u'  <head>\n'])
    extend_([u'    <meta charset="utf-8">\n'])
    extend_([u'        <title>', escape_((title), True), u'</title>\n'])
    extend_([u'        <meta name="robots" content="noindex, nofollow">\n'])
    extend_([u'    <meta name="viewport" content="width=device-width, initial-scale=1.0">\n'])
    extend_([u'    <meta name="description" content="">\n'])
    extend_([u'    <meta name="author" content="">\n'])
    extend_([u'\n'])
    extend_([u'    <!-- Le styles -->\n'])
    extend_([u'    <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">\n'])
    extend_([u'                <link href="/static/css/site.css" rel="stylesheet">\n'])
    extend_([u'\n'])
    extend_([u'    <style>\n'])
    extend_([u'      body {\n'])
    extend_([u'        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */\n'])
    extend_([u'      }\n'])
    extend_([u'    </style>\n'])
    extend_([u'    <link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">\n'])
    extend_([u'\n'])
    extend_([u'    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->\n'])
    extend_([u'    <!--[if lt IE 9]>\n'])
    extend_([u'      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>\n'])
    extend_([u'    <![endif]-->\n'])
    extend_([u'\n'])
    extend_([u'    <!-- Le fav and touch icons -->\n'])
    extend_([u'<!--    <link rel="shortcut icon" href="favicon.ico">\n'])
    extend_([u'    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/bootstrap/ico/apple-touch-icon-144-precomposed.png">\n'])
    extend_([u'    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/bootstrap/ico/apple-touch-icon-114-precomposed.png">\n'])
    extend_([u'    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/bootstrap/ico/apple-touch-icon-72-precomposed.png">\n'])
    extend_([u'        <link rel="apple-touch-icon-precomposed" href="/static/bootstrap/ico/apple-touch-icon-57-precomposed.png">-->\n'])
    extend_([u'  </head>\n'])
    extend_([u'\n'])
    extend_([u'  <body>\n'])
    extend_([u'\n'])
    extend_([u'        ', escape_((self.body()), True), u'\n'])
    extend_([u'\n'])
    extend_([u'    <!-- Le javascript\n'])
    extend_([u'    ================================================== -->\n'])
    extend_([u'    <!-- Placed at the end of the document so the pages load faster -->\n'])
    extend_([u'    <script src="static/js/jquery-1.8.2.min.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-transition.js"></script>\n'])
    extend_([u'<!--    <script src="/static/bootstrap/js/bootstrap-alert.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-modal.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-scrollspy.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-tab.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-tooltip.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-popover.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-button.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-collapse.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-carousel.js"></script>\n'])
    extend_([u'    <script src="/static/bootstrap/js/bootstrap-typeahead.js"></script>\n'])
    extend_([u'        -->\n'])
    extend_([u'  </body>\n'])
    extend_([u'</html>\n'])
    extend_([u'\n'])

    return self