Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each page in rogo will have the following js header where the rogo configuration is set, requirejs initiated and default modules loaded. Pages may have an additional js load to initiate page specifc modules.

Code Block
titleTwig pager page header template example
...
<script id="rogoconfig" src='../js/rogo.min.js'
        data-root="{{path}}"
        data-mathjax="{{data.mathjax}}"
        data-three="{{data.three}}">
</script>
<script src='{{path}}/js/require.js'></script>
<script src='{{path}}/js/main.min.js'></script>
<script src='{{path}}/js/pagespecific.min.js'></script>
...

...