app/routes/staticpages.js
// STATIC PAGES FUNCTIONALITY (here be dragons)
STATIC PAGES FUNCTIONALITY (here be dragons)
STATIC PAGES FUNCTIONALITY ( here be dragons )
function render_static_page_with_sidebar(req, res, page_key, news=null){
    StaticPages.findOne({key: 'Sidebar'}, function(err,sidebar) {
        if (err) { res.redirect('/'); }
        render_static_page(req, res, page_key, sidebar, news)
    });
}
function render_static_page_with_sidebar ( req , res , page_key , news = null ) { StaticPages . findOne ( { key : 'Sidebar' } , function ( err , sidebar ) { if ( err ) { res . redirect ( '/' ) ; } render_static_page ( req , res , page_key , sidebar , news ) } ) ; }
STATIC PAGES FUNCTIONALITY (here be dragons)
STATIC PAGES FUNCTIONALITY ( here be dragons )