Show:

Q.Text Class

Module: Q

Holds application config

Item Index

Methods

Methods

get

(
  • filename
  • [language]
)
Object

Synchronously loads data from text file and parse to JSON

Parameters:

  • filename String

    The filename of the file to load.

  • [language] String optional

    Preferred language

Returns:

Object:

JSON object

params

(
  • viewPath
  • [options]
)
Array

Get parameters merged from all the text sources corresponding to a view template

Parameters:

  • viewPath String

    The parts of the view name, to use with Q/text config

  • [options] Object optional

    Object of options which will pass to Q.Text.get

Returns:

Array:

The merged parameters that come from the text