Skip to content

Commit

Permalink
Ensure the flow of examples builds on previous
Browse files Browse the repository at this point in the history
* Remove controller stuff from layout example -- it should build only on
  linked view example.
* Add layouts to controller example -- it should build on the layout
  example.
* Make the views consistent across examples.
  • Loading branch information
seancorfield committed Jul 10, 2015
1 parent e8a62ef commit fbaf04f
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 12 deletions.
5 changes: 0 additions & 5 deletions examples/3hellolayout/controllers/main.cfc

This file was deleted.

5 changes: 4 additions & 1 deletion examples/3hellolayout/views/main/default.cfm
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<cfoutput>Hello #rc.name#!</cfoutput>
<cfoutput>
<p>Hello FW1!</p>
<p><a href="#buildURL('main.other')#">Go away</a>!</p>
</cfoutput>
5 changes: 5 additions & 0 deletions examples/4hellocontroller/layouts/default.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<cfoutput>
<div style="border: solid green 2px; padding: 20px;">
#body#
</div>
</cfoutput>
1 change: 1 addition & 0 deletions examples/4hellocontroller/layouts/main.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<cfoutput><div style="border: solid blue 1px;">#body#</div></cfoutput>
2 changes: 2 additions & 0 deletions examples/4hellocontroller/layouts/main/default.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Welcome to FW/1!</h1>
<cfoutput>#body#</cfoutput>
5 changes: 4 additions & 1 deletion examples/4hellocontroller/views/main/default.cfm
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<cfoutput>Hello #rc.name#!</cfoutput>
<cfoutput>
<p>Hello #rc.name#!</p>
<p><a href="#buildURL('main.other&name=#rc.name#')#">Go away</a>!</p>
</cfoutput>
4 changes: 2 additions & 2 deletions examples/4hellocontroller/views/main/other.cfm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<cfoutput>
<p>Goodbye FW/1!</p>
<p><a href="#buildURL('main')#">Come back</a>!</p>
<p>Goodbye #rc.name#!</p>
<p><a href="#buildURL( action = 'main', queryString = 'name=#rc.name#' )#">Come back</a>!</p>
</cfoutput>
5 changes: 4 additions & 1 deletion examples/5helloservice/views/main/default.cfm
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<cfoutput>Hello #rc.name#!</cfoutput>
<cfoutput>
<p>Hello #rc.name#!</p>
<p><a href="#buildURL('main.other&name=#rc.name#')#">Go away</a>!</p>
</cfoutput>
4 changes: 2 additions & 2 deletions examples/5helloservice/views/main/other.cfm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<cfoutput>
<p>Goodbye FW/1!</p>
<p><a href="#buildURL('main')#">Come back</a>!</p>
<p>Goodbye #rc.name#!</p>
<p><a href="#buildURL( action = 'main', queryString = 'name=#rc.name#' )#">Come back</a>!</p>
</cfoutput>

0 comments on commit fbaf04f

Please sign in to comment.