SUIT Framework

Scripting Using Integrated Templates

Try It - SUITlons

12/27/2015: SUIT Framework is no longer actively maintained.

Our Try It Editor can be used to play around with some Rulesets live on this site. Learn more about it on its Docs article.

HTML

Brandon's Site

Welcome, Brandon!

Who's Online?

Brandon , Chris


Copyright © 20XX Brandon Evans.

Text
<h1>Brandon's Site</h1>

<p>Welcome, Brandon!</p>


<fieldset>
    <legend>Who's Online?</legend>
    <p>
        
        
        <strong>
        
        Brandon
        </strong>
        
        ,
        
        <del>
        Chris
        
        </del>
        
    </p>
</fieldset>
<hr />
<p>Copyright © 20XX Brandon Evans.</p> 

Template:

Entities Insensitive Line Break Log Mismatched Unclosed

Escape:

Python
from pylons import tmpl_context as c
c.username = 'Brandon'
c.loggedin = True
c.members = [
    {
        'name': 'Brandon',
        'admin': True,
        'banned': False
    },
    {
        'name': 'Chris',
        'admin': False,
        'banned': True
    }
]
header.tpl
<h1>Brandon's Site</h1>
footer.tpl
<hr />
<p>Copyright &copy; 20XX Brandon Evans.</p>