Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <h2>JsRender Converters Demo</h2>

<div id="result"></div>

<script id="theTmpl" type="text/x-jsrender">
   <em>Name:</em> {{toUpper:name}}
   {{if showNickname && nickname}}
      (Goes by <em>{{:nickname}}</em>)
   <em>Date of Birth:</em> {{formatDate:dob}}

<hr size="1" noshade color="#F00000">

<div style="font-size: 0.8em;">
<p>If you find this demo useful, please consider <a href="" target="_blank">donating $1 dollar</a> for a coffee (secure PayPal link) or purchasing one of my songs from <a href="" target="_blank"></a> or <a href="" target="_blank"></a> for only 0.99 cents each. I have also released CDs with my band <a href="" target="_blank">Ivory Knight</a> and Annihilator main-man Jeff Waters.</p>
<p>Rob uses and recommends <a href="" target="_blank">MochaHost</a>, which provides Web Hosting for as low as $1.95 per month, as well as unlimited emails and disk space!</p>




                var names = [
    "name": "Robert",
    "nickname": ["Blackjacques", "Rob"],
    "showNickname": true,
    "dob": "1969-01-14"
    "name": "Jeanie",
    "nickname": "",
    "showNickname": false,
    "dob": "1968-06-12"

   toUpper: function(val) {
     return val.toUpperCase();
   formatDate: function(val) {
     return (new Date(val)).toLocaleDateString('en-US', {
       day:   'numeric',
       month: 'long',
       year:  'numeric'

var template = $.templates("#theTmpl");

var htmlOutput = template.render(names);