Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with:

XStandard XHtml Code Templates

By Ben Nadel on

I am just testing out XStandard's ability to add xhtml code templates. For instance, I have a the template file _image_border.cfm that has the code:

  • <table width="100%" border="0" cellspacing="0" cellpadding="0" class="imageborder">
  • <tr>
  • <td width="50%" rowspan="3">
  • <br />
  • </td>
  • <td class="nw">
  • &nbsp;<br />
  • </td>
  • <td class="n">
  • &nbsp;<br />
  • </td>
  • <td class="ne">
  • &nbsp;<br />
  • </td>
  • <td width="50%" rowspan="3">
  • <br />
  • </td>
  • </tr>
  • <tr>
  • <td class="w">
  • &nbsp;<br />
  • </td>
  • <td class="c">
  • <img src="about:blank" />
  • </td>
  • <td class="e">
  • &nbsp;<br />
  • </td>
  • </tr>
  • <tr>
  • <td class="sw">
  • &nbsp;<br />
  • </td>
  • <td class="s">
  • &nbsp;<br />
  • </td>
  • <td class="se">
  • &nbsp;<br />
  • </td>
  • </tr>
  • </table>

And using that, I can automatically insert more complex layouts like the image below that has the drop-shadowy border:


 
 
 

 
i am  
 
 
 

All code templates are organized into a single directory (by my choice) and are available in a directory menu for ease of use. Every day, I am finding XStandard to be a more and more powerful editor for my own content management system (CMS). Right now, I am hooking directly into my database for links to my blog entries and snippets. I have directories of special and foreign characters. I can upload images through XStandard and integrate them with my own file management system. It's pretty freakin' cool! Don't you with you had a little more XStandard.com in your site?

Tweet This Deep thoughts by @BenNadel - XStandard XHtml Code Templates Thanks my man — you rock the party that rocks the body!


Reader Comments

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.