diff --git a/README.md b/README.md index b92968a..f7e2356 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ -# BS-4-CF -Bootstrap tags for Adobe ColdFusion +# Bootstrap for ColdFusion -Simplify Bootstrap and ColdFusion +Simplifying both Bootstrap and ColdFusion # Why is this interesting? @@ -14,7 +13,7 @@ The two put together are highly unreadable and difficult to debug. This is where BootsFaces for JSF shows the way to a cleaner approach. So what I have done is created a similar library for ColdFusion. -### Without BS-4-CF +### Without Bootstrap for ColdFusion ``` '; variables.result &= ''; + if(attributes.closable) variables.result &= variables.crlf & ''; variables.result &= ''; variables.result &= variables.crlf & ''; variables.result &= variables.crlf & ''; variables.result &= variables.crlf & ''; variables.result &= variables.crlf & ''; variables.result &= variables.crlf & ''; diff --git a/bootstrap/navBar.cfm b/bootstrap/navBar.cfm index 2d74364..dc54b87 100644 --- a/bootstrap/navBar.cfm +++ b/bootstrap/navBar.cfm @@ -15,45 +15,55 @@ case "start" : variables.result = ""; variables.crlf = chr(13) & chr(10); - param attributes.brand = ""; - param attributes.brandHref = ""; - param attributes.fixed = ""; - param attributes.inverse = false; - param attributes.processed = true; - param attributes.rendered = true; - param attributes.static = false; + param attributes.brand = ""; + param attributes.brandHref = ""; + param attributes.fixed = ""; + param attributes.key = ""; + param attributes.inverse = false; + param attributes.isSafeHTML = application.Bootstrap.isSafeHTML.contains("navbar"); + param attributes.processed = true; + param attributes.profile = application.Bootstrap.profile; + param attributes.placeholder = []; + param attributes.rendered = true; + param attributes.static = false; + param attributes.throwOnError = application.Bootstrap.throwOnError; if (!attributes.processed) exit "exitTag"; break; case "end" : - if (!attributes.inverse) variables.result &= ' - '; + variables.result &= ''; + variables.result &= variables.crlf & ''; + variables.result &= ''; thisTag.GeneratedContent = ""; diff --git a/bootstrap/navBarLinks.cfm b/bootstrap/navBarLinks.cfm index 9531f9f..934b5f8 100644 --- a/bootstrap/navBarLinks.cfm +++ b/bootstrap/navBarLinks.cfm @@ -14,33 +14,45 @@ case "start" : variables.result = ""; variables.crlf = chr(13) & chr(10); - - param attributes.id = ""; - param attributes.processed = true; - param attributes.pull = ""; - param attributes.rendered = true; - param attributes.tooltip = ""; + + param attributes.id = ""; + param attributes.isSafeHTML = application.Bootstrap.isSafeHTML.contains("navbarlinks"); + //param attributes.key = ""; + param attributes.processed = true; + param attributes.profile = application.Bootstrap.profile; + param attributes.pull = ""; + //param attributes.placeholder = []; + param attributes.rendered = true; + param attributes.throwOnError = application.Bootstrap.throwOnError; + param attributes.tooltip = ""; + param attributes.tooltipPosition = "bottom"; + if (!attributes.processed) exit "exitTag"; break; - -case "end" : - - variables.result &= '