Mantra how-to guides

Mantra how-to guides

  • 21 - 30 (38)

How to organize the responsabilities of Mantra components

Mantra components should be small pieces of code with specific funcionality. Organizing them in the right way is extremely important for the maintenability of any project


Add global vars for UI

How to add new global vars that are Mustache variables available for all views in the project


Set a specific data provider for a component

With Mantra, you can set differents data providers for the components within the same project


Deploy a Mantra project with Digital Ocean

Digital Ocean is a cloud provider featured by being fast with competitive costs and reliable.


Mantra data models types

Mantra uses RedEntities as a fast and simple Object Mapper for data models and it is based on a small number of types


Locating Mantra projects assets easily

Mantra component files are named so that they can be found easily with any IDE


Add default components

Any Mantra project expects you to indicate default components to run them in a fresh installation


Define and render a simple view

To define a new view and render it is easy and can be done in minutos. This how-to explains the basics.


How to declare an anonymous block

Blocks are pieces of HTML content you can add whenever you need: views, html roots or other blocks


How to add a custom Mantra "extend"

Extend components assets with Mantra "extends": a way for the components to define new types of "hooks"


  • 21 - 30 (38)