Published
Edited
May 31, 2022
Insert cell
Insert cell
Insert cell
Imba = import('https://cdn.skypack.dev/imba@2.0.0-alpha.207?min')
Insert cell
Compiler = import('https://cdn.skypack.dev/imba/compiler')
Insert cell
output = Compiler.default.compile("let x = 100",{sourceId: 'something'})
Insert cell
output.result
Insert cell
What now? How to pass a string to be parsed by Imba?
Insert cell
Imba.Window
Insert cell
Imba.Component
Insert cell
foo = new Imba.Comment
Insert cell
foobar = Imba.createComment("hi")
Insert cell
Imba.render(foobar) //?
Insert cell
Insert cell
Imba.colors
Insert cell
testing001 = Compiler.default.compile(`import 'util/styles'

# https://github.com/eugenkiss/7guis/wiki#counter

tag app-counter
prop count = 0

<self[d:hflex cg:2]>
<input[w:10rem] type='number' bind=count>
<button @click=count++> "count"
`,{sourceId:"something"})
Insert cell
testing001.result.rawResult

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more