aboutsummaryrefslogtreecommitdiffstats
path: root/root/articles/mmmfs/examples/language_support/moonscript/text$moonscript -> mmm$dom.moon
blob: 5cc50e6d1f51d89d687fed1268d61abb3a837fa6 (plain)
1
2
3
4
5
6
7
8
9
10
import a, article, h1, p from require 'mmm.dom'

moonscript = a 'MoonScript', href: 'https://moonscript.org/'
lua = a 'Lua', href: 'https://www.lua.org/'
fengari = a 'fengari.io', href: 'https://fengari.io/'

article {
  h1 'MoonScript',
  p moonscript, " is compiled to ", lua, " on the server, which is then executed on the client using ", fengari, "."
}