Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 520 Bytes

BRAGI.md

File metadata and controls

44 lines (40 loc) · 520 Bytes

Bragi

Bragi is a templating engine, allowing to express rendered content by objects, arrays and primitive types.

[
  'section',
  {
    class: 'rectangle',
    style: {
      backgroundColor: 'white',
      height: [120, 'px'],
      width: [80, 'px'],
    },
  },
]
[
  'a',
  {
    class: ['link', {
      'highlighted': highlighted,
    }],
    href: 'https://www.opera.com',
  },
  'Opera',
]
[
  'ul',
  [
    'li',
    'First item',
  ],
  [
    'li',
    'Second item',
  ],
]