src/aria/templates/TemplateCtxt.js
function (callback, options) {
            if (this._out != null) {
                // calling refresh while the HTML is being generated is not permitted
                this.$logError(this.INVALID_STATE_FOR_REFRESH, [this.tplClasspath]);
                return null;
            }
            var out = new ariaTemplatesMarkupWriter(this, options);
            var res = null;
            this._setOut(out);
            this.$callback(callback, out);
            res = out.getSection();
            out.$dispose();
            this._setOut(null);
            return res;
        }
function (callback, options) {
            if (this._out != null) {
                // calling refresh while the HTML is being generated is not permitted
                this.$logError(this.INVALID_STATE_FOR_REFRESH, [this.tplClasspath]);
                return null;
            }
            var out = new ariaTemplatesMarkupWriter(this, options);
            var res = null;
            this._setOut(out);
            this.$callback(callback, out);
            res = out.getSection();
            out.$dispose();
            this._setOut(null);
            return res;
        }
function ( callback , options ) { if ( this . _out != null ) { // calling refresh while the HTML is being generated is not permitted this . $logError ( this . INVALID_STATE_FOR_REFRESH , [ this . tplClasspath ] ) ; return null ; } var out = new ariaTemplatesMarkupWriter ( this , options ) ; var res = null ; this . _setOut ( out ) ; this . $callback ( callback , out ) ; res = out . getSection ( ) ; out . $dispose ( ) ; this . _setOut ( null ) ; return res ; }
Create a section. The section is not inserted in the sections tree of the template.
@param {aria.core.CfgBeans:Callback} callback callback which creates the content of the section. The
parameter given to this callback is the markup writer out object.
@param {Object} options optional object containing options for the markup writer
Create a section . The section is not inserted in the sections tree of the template .