/*______________ | ______ | U I Z E J A V A S C R I P T F R A M E W O R K | / / | --------------------------------------------------- | / O / | MODULE : UizeSite.DelvePageWriter | / / / | | / / / /| | ONLINE : http://uize.com | /____/ /__/_| | COPYRIGHT : (c)2010-2014 UIZE | /___ | LICENSE : Available under MIT License or GNU General Public License |_______________| http://uize.com/license.html */ /*? Introduction . *DEVELOPERS:* `Chris van Rensburg` */ Uize.module ({ name:'UizeSite.DelvePageWriter', required:[ 'Uize.Dom.Basics', 'UizeSite.Templates.DelvePageHtml' ], builder:function () { 'use strict'; return Uize.package ({ initialize:function () { Uize.Dom.Basics.setStyle (document.body,{margin:0}); var _html = UizeSite.Templates.DelvePageHtml.process ({ pathToResources:Uize.pathToResources }), _srcAttributeValue = 'javascript:\'' + encodeURIComponent (_html.replace (/'/g,'\\\'').replace (/\r|\n|\r\n/g,'')) + '\'' ; Uize.Dom.Basics.injectHtml ( document.body, '' ); } }); } });