Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 924 Bytes

README.md

File metadata and controls

33 lines (19 loc) · 924 Bytes

Bootstrap for ColdFusion

Simplifying both Bootstrap and ColdFusion

Why is this interesting?

Bootstrap's code looks like tag soup. There are way too may tags in Bootstrap. ColdFusion view code looks tag soup. There are way too may tags in ColdFusion. The two put together are highly unreadable and difficult to debug. This is where custom tags save the day.

BootsFaces for JSF shows the way to a cleaner approach. So what I have done is created a similar library for ColdFusion.

Without Bootstrap for ColdFusion

<cfif showme>	
     <button type="button" class="btn btn-default btn-lg">
         <i class="glyphicon glyphicon-floppy-disk"></i><!-- Don't forget the whitespace here -->
         <cfoutput>#rc.savelabel#<cfoutput>
     </button>
</cfif>	

With Bootstrap for ColdFusion

<b:button processed="#showme#" binding="savelabel" icon="floppy-disk" size="lg" />