|
Revision 5, 0.5 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Line | |
|---|
| 1 | <cfcomponent extends="render" instructions="To include a file, use <cfinclude template=""xxx"" where xxx is relative to the blog CFC or specified with a ColdFusion Mapping."> |
|---|
| 2 | |
|---|
| 3 | <cffunction name="display"> |
|---|
| 4 | <cfargument name="template" type="string" required="false" default=""> |
|---|
| 5 | <cfset var buffer = ""> |
|---|
| 6 | |
|---|
| 7 | <cfif len(arguments.template)> |
|---|
| 8 | <cfsavecontent variable="buffer"> |
|---|
| 9 | <cfinclude template="#arguments.template#"> |
|---|
| 10 | </cfsavecontent> |
|---|
| 11 | <cfreturn buffer> |
|---|
| 12 | </cfif> |
|---|
| 13 | |
|---|
| 14 | <cfreturn ""> |
|---|
| 15 | |
|---|
| 16 | </cffunction> |
|---|
| 17 | |
|---|
| 18 | </cfcomponent> |
|---|