lib/transformers/ng.app.transformer.js
function transform(flapjack, options) {
    var filePath = options.filePath;
    var appName = this.getAppName(filePath, options.appName);
    var appInfo = this.pancakes.cook(flapjack, null);
    var validations = this.getSchemaValidations(appInfo, null);
    var schema = this.stringify(validations);
    var deps = (options.isMobile && appInfo.clientMobileDeps) ?
        appInfo.clientMobileDeps :
        appInfo.clientDependencies;

    return this.template({
        appName:    this.getAppModuleName(options.prefix, appName),
        deps:       deps || [],
        initLoad:   appInfo.clientLoadOnInit,
        isMobile:   options.isMobile,
        schema:     schema,
        isCommon:   appName === 'common'
    });
}
function transform(flapjack, options) {
    var filePath = options.filePath;
    var appName = this.getAppName(filePath, options.appName);
    var appInfo = this.pancakes.cook(flapjack, null);
    var validations = this.getSchemaValidations(appInfo, null);
    var schema = this.stringify(validations);
    var deps = (options.isMobile && appInfo.clientMobileDeps) ?
        appInfo.clientMobileDeps :
        appInfo.clientDependencies;

    return this.template({
        appName:    this.getAppModuleName(options.prefix, appName),
        deps:       deps || [],
        initLoad:   appInfo.clientLoadOnInit,
        isMobile:   options.isMobile,
        schema:     schema,
        isCommon:   appName === 'common'
    });
}
function transform ( flapjack , options ) { var filePath = options . filePath ; var appName = this . getAppName ( filePath , options . appName ) ; var appInfo = this . pancakes . cook ( flapjack , null ) ; var validations = this . getSchemaValidations ( appInfo , null ) ; var schema = this . stringify ( validations ) ; var deps = ( options . isMobile && appInfo . clientMobileDeps ) ? appInfo . clientMobileDeps : appInfo . clientDependencies ; return this . template ( { appName : this . getAppModuleName ( options . prefix , appName ) , deps : deps || [ ] , initLoad : appInfo . clientLoadOnInit , isMobile : options . isMobile , schema : schema , isCommon : appName === 'common' } ) ; }
Pull together the template model and generate the template
@param flapjack
@param options
@returns {Q}
Pull together the template model and generate the template