diff options
| author | Hunter Stevens <onebree@gmail.com> | 2016-02-15 17:47:35 -0500 | 
|---|---|---|
| committer | Hunter Stevens <onebree@gmail.com> | 2016-02-15 17:47:35 -0500 | 
| commit | d0b067b140d3d351ae9dee0b3e542935b7ca35d4 (patch) | |
| tree | b83501b5b82240663029d7382f873fb369ea81c7 /coldfusion.html.markdown | |
| parent | cffb7e6770b517a620115b3a9e1f82ca1dd82a98 (diff) | |
| parent | cd16626c8f64a29d8235bd0ab21c7a32e248928f (diff) | |
Resolve conflicts from merge
Diffstat (limited to 'coldfusion.html.markdown')
| -rw-r--r-- | coldfusion.html.markdown | 59 | 
1 files changed, 33 insertions, 26 deletions
| diff --git a/coldfusion.html.markdown b/coldfusion.html.markdown index 70804a1e..482612fe 100644 --- a/coldfusion.html.markdown +++ b/coldfusion.html.markdown @@ -3,13 +3,17 @@ language: coldfusion  filename: learncoldfusion.cfm  contributors:      - ["Wayne Boka", "http://wboka.github.io"] +    - ["Kevin Morris", "https://twitter.com/kevinmorris"]  ---  ColdFusion is a scripting language for web development.  [Read more here.](http://www.adobe.com/products/coldfusion-family.html) -```html +### CFML +_**C**old**F**usion **M**arkup **L**anguage_   +ColdFusion started as a tag-based language. Almost all functionality is available using tags. +```html  <em>HTML tags have been provided for output readability</em>  <!--- Comments start with "<!---" and end with "--->" ---> @@ -229,40 +233,38 @@ ColdFusion is a scripting language for web development.  <em>Code for reference (Functions must return something to support IE)</em> -<pre> -<cfcomponent> -	<cfset this.hello = "Hello" /> -	<cfset this.world = "world" /> +<cfcomponent> +	<cfset this.hello = "Hello" /> +	<cfset this.world = "world" /> -	<cffunction name="sayHello"> -		<cfreturn this.hello & ", " & this.world & "!" /> -	</cffunction> +	<cffunction name="sayHello"> +		<cfreturn this.hello & ", " & this.world & "!" /> +	</cffunction> -	<cffunction name="setHello"> -		<cfargument name="newHello" type="string" required="true" /> +	<cffunction name="setHello"> +		<cfargument name="newHello" type="string" required="true" /> -		<cfset this.hello = arguments.newHello /> +		<cfset this.hello = arguments.newHello /> -		<cfreturn true /> -	</cffunction> +		<cfreturn true /> +	</cffunction> -	<cffunction name="setWorld"> -		<cfargument name="newWorld" type="string" required="true" /> +	<cffunction name="setWorld"> +		<cfargument name="newWorld" type="string" required="true" /> -		<cfset this.world = arguments.newWorld /> +		<cfset this.world = arguments.newWorld /> -		<cfreturn true /> -	</cffunction> +		<cfreturn true /> +	</cffunction> -	<cffunction name="getHello"> -		<cfreturn this.hello /> -	</cffunction> +	<cffunction name="getHello"> +		<cfreturn this.hello /> +	</cffunction> -	<cffunction name="getWorld"> -		<cfreturn this.world /> -	</cffunction> -</cfcomponent> -</pre> +	<cffunction name="getWorld"> +		<cfreturn this.world /> +	</cffunction> +</cfcomponent>  <cfset this.hello = "Hello" />  <cfset this.world = "world" /> @@ -314,8 +316,13 @@ ColdFusion is a scripting language for web development.  <cfoutput><p>#getWorld()#</p></cfoutput>  ``` +### CFScript +_**C**old**F**usion **S**cript_   +In recent years, the ColdFusion language has added script syntax to mirror tag functionality. When using an up-to-date CF server, almost all functionality is available using scrypt syntax. +  ## Further Reading  The links provided here below are just to get an understanding of the topic, feel free to Google and find specific examples.  1. [Coldfusion Reference From Adobe](https://helpx.adobe.com/coldfusion/cfml-reference/topics.html) +2. [Open Source Documentation](http://cfdocs.org/) | 
