Module bauplan.app

Application instance

var App = require("bauplan.app");

or as part of the Bauplan bundle

var Bauplan = require("bauplan");
var App = Bauplan.App;

To set or get the app locale

App.locale("fr");
var loc = App.locale(); // "fr"

To (re-)render the entire app

App.render();

This module performs the grunt work once all configuration and dependencies have been loaded

  • loads app settings from app.setup (if any)
  • sets app’s root view
    • name
    • id
    • template
  • sets app locale/lang

  • renders app

  • calls callback (if any)

Returns

App

Type
instance

Requires

Source:
See:

Members

(inner) name :string

Type:
  • string
Default Value:
  • main.layout
Source:

(inner) settings :Object

Type:
  • Object
Properties:
Name Type Attributes Default Description
name string <optional>
main.layout

Main layout name

id string <optional>
main-layout

Main layout id

template string <optional>
{{name}}.view

Main layout template

element string <optional>
#app

DOM target element

locale string <optional>
en

Default locale

initialized function <optional>

Post-initialization function

Source:

Methods

locale(locopt) → {string}

Set/get app locale

Parameters
Name Type Attributes Description
loc string <optional>

Value of locale

Source:
Returns

Value of locale

Type
string

render()

Renders the entire application from the root view

Source: