lib/transformers/ng.uipart.transformer.js
function getHtml(uipart, options) {
    options = options || {};
    var me = this;

    // if any subviews, add them as dependencies
    var model = {
        isMobile: options.isMobile,
        appName: options.appName,
        pageCssId: options.appName + 'PageCssId'
    };
    var deps = _.extend({
        subviews: {},
        model: model,
        pageContent: options.pageContent || ' ',
        sideviewContent: options.sideviewContent || ' '
    }, this.getJangularDeps());

    _.each(uipart.subviews, function (subview, subviewName) {
        deps.subviews[subviewName] = me.pancakes.cook(subview, { dependencies: deps });
    });

    // cook the view; the result will be jeff objects
    var view = this.pancakes.cook(uipart.view, { dependencies: deps });

    // we can now generate HTML off the jyt objects (using jyt render so angular NOT interpreted)
    var html = jangular.jytRender(view);
    html = html.replace(/\'/g, '\\\'');     // need to protect all single quotes

    return html;
}
function getHtml(uipart, options) {
    options = options || {};
    var me = this;

    // if any subviews, add them as dependencies
    var model = {
        isMobile: options.isMobile,
        appName: options.appName,
        pageCssId: options.appName + 'PageCssId'
    };
    var deps = _.extend({
        subviews: {},
        model: model,
        pageContent: options.pageContent || ' ',
        sideviewContent: options.sideviewContent || ' '
    }, this.getJangularDeps());

    _.each(uipart.subviews, function (subview, subviewName) {
        deps.subviews[subviewName] = me.pancakes.cook(subview, { dependencies: deps });
    });

    // cook the view; the result will be jeff objects
    var view = this.pancakes.cook(uipart.view, { dependencies: deps });

    // we can now generate HTML off the jyt objects (using jyt render so angular NOT interpreted)
    var html = jangular.jytRender(view);
    html = html.replace(/\'/g, '\\\'');     // need to protect all single quotes

    return html;
}
function getHtml ( uipart , options ) { options = options || { } ; var me = this ; // if any subviews, add them as dependencies var model = { isMobile : options . isMobile , appName : options . appName , pageCssId : options . appName + 'PageCssId' } ; var deps = _ . extend ( { subviews : { } , model : model , pageContent : options . pageContent || ' ' , sideviewContent : options . sideviewContent || ' ' } , this . getJangularDeps ( ) ) ; _ . each ( uipart . subviews , function ( subview , subviewName ) { deps . subviews [ subviewName ] = me . pancakes . cook ( subview , { dependencies : deps } ) ; } ) ; // cook the view; the result will be jeff objects var view = this . pancakes . cook ( uipart . view , { dependencies : deps } ) ; // we can now generate HTML off the jyt objects (using jyt render so angular NOT interpreted) var html = jangular . jytRender ( view ) ; html = html . replace ( / \' / g , '\\\'' ) ; // need to protect all single quotes return html ; }
Get the HTML for a given ui part

@param uipart
@param options
@returns {string}
Get the HTML for a given ui part