javascript - MEAN.IO how do I change default template? -


i finding difficult figure out how mean.io stack defines default.html template used through-out modules and/or packages. trying change 1 view instead used default.html template, use 1 define.

their documentation http://mean.io/#!/docs says use 'swig' templating system. however, did file search , inside templates, find 5 occurrences of 'swig' , declared in html text. not see swig being used, or injected in end neither. should in end. ideas? .

default html template other pages use parent. want change html another. here default.html looks like:

<!doctype html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml" itemscope="itemscope" itemtype="http://schema.org/product"> {% include '../includes/head.html' %}  <body>     <div class="navbar navbar-default navbar-fixed-top" data-ng-include="'/system/views/header.html'" data-role="navigation"></div>     {% if adminenabled %}     <section class="admin-menu">         <div data-ng-include="'/mean-admin/views/index.html'"></div>     </section>     {% endif %}     <section class="content">         <section class="container">             {% block content %}{% endblock %}         </section>     </section>     {% include '../includes/foot.html' %} </body>  </html> 

in case else find way here in hope answer: documentation can found here: http://learn.mean.io/#mean-stack-packages-overriding-the-default-layouts

from documentation:

one able override default layout of application through custom package. below example overriding default layout of system , instead using layouts found locally within package

mypackage.register(function(system, app) {   app.set('views', __dirname + '/server/views');   // ... 

please note package must depend on system ensure evaluated after system , can override views folder


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -