Skip to content

v0.4.0

Compare
Choose a tag to compare
@AmeroHan AmeroHan released this 13 Nov 11:07
· 26 commits to main since this release

BREAKING CHANGES

  1. Elements are now accessed from <module>.a instead of directly from the module, for instance:

    before 0.4:

    local a = require('acandy')
    local frag = a.Fragment {
       a.h1 'An Example',
       a.p 'Hello, world!',
    }

    in 0.4:

    local acandy = require('acandy')
    local a = acandy.a
    local frag = acandy.Fragment {
       a.h1 'An Example',
       a.p 'Hello, world!',
    }
  2. image and menuitem are no longer considered predefined HTML elements, which means a.image and a.menuitem are no longer case-insensitive.

Features

  1. acandy.Doctype.HTML supported. It returns '<!DOCTYPE html>' on tostring.
  2. a.fencedframe is now case-insensitive.