Skip to content

cfmitrah/BS-4-CF

 
 

Repository files navigation

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" />	

About

Bootstrap tags for Adobe ColdFusion

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ColdFusion 97.0%
  • CSS 2.0%
  • Other 1.0%