Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 730 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 730 Bytes

This example covers

  • lmd config string interpolation feature (_.template style)

index.lmd.json

{
    "name": "Config interpolation example: v${version}, ie=<%= ie %>",
    "disclaimer": "lang is a user defined property it is not inheritable",
    "lang": "ru",
    "output": "../index.lmd-<%= version %><%= lang === 'ru' ? '-ru_RU' : '' %>.js",
    "version": "0.0.1",
    "ie": false
}

will be interpolated to

{
    "name": "Config interpolation example: v0.0.1, ie=false",
    "output": "../index.lmd-0.0.1-ru_RU.js",
    "version": "0.0.1",
    "ie": false
}

note that lang and disclaimer are user fields, they will be lost

  • cache - localStorage cache
  • 3-party modules