This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ContentBox - A Modular Content Platform | |
* Copyright since 2012 by Ortus Solutions, Corp | |
* www.ortussolutions.com/products/contentbox | |
* --- | |
*/ | |
component hint="My Secrets Module Configuration"{ | |
// Module Properties | |
this.title = "MySecrets"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ContentBox - A Modular Content Platform | |
* Copyright since 2012 by Ortus Solutions, Corp | |
* www.ortussolutions.com/products/contentbox | |
* --- | |
*/ | |
component hint="My Secrets Module Configuration"{ | |
// Module Properties | |
this.title = "MySecrets"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Module Directives as public properties | |
this.title = "Title of the module"; | |
this.author = "Author of the module"; | |
this.webURL = "Web URL for docs purposes"; | |
this.description = "Module description"; | |
this.version = "Module Version"; | |
this.viewParentLookup = (true) [boolean] (Optional) // If true, checks for views in the parent first, then it the module.If false, then modules first, then parent. | |
this.layoutParentLookup = (true) [boolean] (Optional) // If true, checks for layouts in the parent first, then it the module.If false, then modules first, then parent. | |
this.entryPoint = "" (Optional) // If set, this is the default event (ex:forgebox:manager.index) or default route (/forgebox) the framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
#html.doctype()# | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Custom Module Layout</title> | |
<meta name="description" content="ContentBox Application Template"> | |
<meta name="author" content="Ortus Solutions, Corp"> | |
<!---Base URL ---> | |
<base href="#getSetting( "HTMLBaseURL" )#" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Module Directives as public properties | |
this.title = "Title of the module"; | |
this.author = "Author of the module"; | |
this.webURL = "Web URL for docs purposes"; | |
this.description = "Module description"; | |
this.version = "Module Version"; | |
this.viewParentLookup = (true) [boolean] (Optional) // If true, checks for views in the parent first, then it the module.If false, then modules first, then parent. | |
this.layoutParentLookup = (true) [boolean] (Optional) // If true, checks for layouts in the parent first, then it the module.If false, then modules first, then parent. | |
this.entryPoint = "" (Optional) // If set, this is the default event (ex:forgebox:manager.index) or default route (/forgebox) the framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var fs = require('fs'); | |
var path = require('path'); | |
var jshint = require('jshint').JSHINT; | |
var async = require('async'); | |
var foldersToProcess = [ | |
'js', 'js/services' | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
blah = stuff({key1='foo',key2='bar'}); | |
public boolean function stuff(struct mystruct) | |
{ | |
return structIsEmpty(arguments.mystruct); | |
} | |
/* | |
The above will throw an error (eventually, again, it's not always reproduceable. You'll just get a random CF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent initmethod="init"> | |
<!--- init is the default or implied method ---> | |
<!--- having an incorrect initmethod name will cause the cfc to error ---> | |
<cffunction name="init"> | |
<cffile action = "append" file = "#expandpath('./testing.txt')#" output = "#getTickCount()# - Init"> | |
</cffunction> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Tag - CreateObject .init()</h1> | |
<cffile action = "append" file = "#expandpath('./testing.txt')#" output = "#getTickCount()# Tag - CreateObject .init() Before"> | |
<cfset obj = createObject("component", "inittest.main").init() /> | |
<cffile action = "append" file = "#expandpath('./testing.txt')#" output = "#getTickCount()# Tag - CreateObject .init() After"> | |
<h1>Tag - cfobject .init()</h1> | |
<cffile action = "append" file = "#expandpath('./testing.txt')#" output = "#getTickCount()# Tag - cfobject .init() Before"> | |
<cfobject component="inittest.main" name="obj" /> | |
<cfset obj = obj.init() /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput>#DateFormat(now(), "mm/dd/yyy")#</cfoutput> |