SOURCE CODE: UizeDotCom.Templates.WidgetToGoHomepage

VIEW REFERENCE

/*
  This is an automatically generated module, compiled from the JavaScript template file:
    UizeDotCom.Templates.WidgetToGoHomepage.js.jst
*/

/*ScruncherSettings Mappings="=" LineCompacting="TRUE"*/

Uize.module ({
  name:'UizeDotCom.Templates.WidgetToGoHomepage',
  required:[
    'Uize.Xml',
    'Uize.String'
  ],
  builder:function () {
    var _package = function () {};

    /*** Public Static Methods ***/
      _package.process = function (input) {
        var output = [];

          var
            _widgetName = input.title.toLowerCase (),
            _widgetNameForUrl = _widgetName.replace (/\s+/g,'-'),
            _description = input.description.short || 'This is the homepage for the ' + input.title + ' widget of the UIZE JavaScript Framework.'
          ;

        output.push ('\n\n\n  ',input .title,' | Widgets | UIZE JavaScript Framework\n  \n  \n  \n  \n  \n    \n    \n\n  \n  \n  \n\n\n\n\n\n\n

\n \n WIDGETS\n ',input .title,'\n

\n\n'); var _dimensions = input.dimensions, _webWidth = _dimensions.webWidth, _webHeight = _dimensions.webHeight, _widgetWebUrl = 'http://uize.com/widgets/' + _widgetNameForUrl + '/web.html' ; output.push ('
\n
\n ',_description,'\n
\n\n
\n
    ',Uize.String.hugJoin (input.features,'\t\t\t
  • ','
  • \n'),'
\n\n

This widget is built using the ',input .widgetClassModule,' module of the UIZE JavaScript Framework. To see more JavaScript examples, view the Javascript Examples index page.

\n\n '); /* output.push ('

To see the ??? widget in action, view the ??? example.

'); */ output.push ('\n
\n\n
\n \n\n \n \n \n \n \n \n \n \n \n
EMBED')),'" readonly="readonly"/>
BOOKMARKLET',input .title.toUpperCase (),'
\n\n SEE MORE WIDGETS\n
\n\n
\n
\n\n\n\n \n\n'); return output.join (''); }; /*** Public Static Properties ***/ _package.input = { title:'string', urls:'object', dimensions:'object', description:'object', author:'object', images:'object' }; return _package; } });