Skip to main content
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Doug Hughes and Ezra Parker and Dan Wilson and John Mason and Jason Dean and Luis Majano and Mark Mandel and Brian Kotek and Wil Genovese and Rob Brooks-Bilson and Andy Matthews and Simeon Bateman and Ray Camden and Chris Rockett and Joe Bernard and Dan Skaggs and Byron Raines and Barney Boisvert and Simon Free and Steve 'Cutter' Blades and Seth Bienek and Katie Bienek and Jeff Coughlin
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Doug Hughes Ezra Parker Dan Wilson John Mason Jason Dean Luis Majano Mark Mandel Brian Kotek Wil Genovese Rob Brooks-Bilson Andy Matthews Simeon Bateman Ray Camden Chris Rockett Joe Bernard Dan Skaggs Byron Raines Barney Boisvert Simon Free Steve 'Cutter' Blades Seth Bienek Katie Bienek Jeff Coughlin

XStandard XHtml Code Templates

By
Published in

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.

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?

Want to use code from this post? Check out the license.

Reader Comments

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel
Managed hosting services provided by:
xByte Cloud Logo