Macros

@todo need to do includes of all pages underneith (otherwise will not showup in pdf)

JumpScale portal comes shipped with a big variety of macros.

The portal supports three kind of macros.

For details how to write macros please see the HowTo section.

Description

A macro is a block inside the WIKI content which get processed on the server side of the portal server. It can be used to retrieve extra data.

Location

Macros can be stored as system macros or on a per space basis.

  • spacepath/.macros/
  • apps/portals/portalbase/macros/

Under these paths we should have three subpaths page, wiki and preprocess

Wiki Macros

Wiki macros replace with body of the macro with new wiki syntax and can write out new macros in its turn. The doc object get passed to the params of these macros.

Examples

Page Macros

Page macros work on a high level of the document and manipulate the HTML itself. The page object gets passed to the params which makes it easy to add CSS or JavaScript to the document.

Examples

Preprocess macros

Currently only include uses the preprocessor macro.

Examples

results matching ""

    No results matching ""