Imda
https://gyazo.com/a9a780c5a702ea1a4260ad8559c322f6
The friendly full-stack language
一応AltJSという括りに入るのかmrsekut.icon ViewからServerまでサポートしてる
静的型付けではないっぽい
syntaxはsimpleで良さそう
なんかRubyっぽいな。Rubyしらんけどmrsekut.icon
syntax
code:ui.imda
import './canvas'
import './pickers'
global css body m:0 p:0 of:hidden rd:lg bg:yellow1
const state = {stroke: 5, color: '#3B82F6'}
tag App
<self>
<stroke-picker options=strokes bind=state.stroke>
<color-picker options=colors bind=state.color>
code:server.imda
import express from 'express'
import passport from 'passport'
import index from './index.html'
import image from './confused-cat.png'
const app = express()
app.get '/404' do(req,res)
res.send String <html> <body>
<h1> "We could not find this page!"
<img src=image>
<a href='/'> "Go home!"
app.get '/:page' do(req,res)
res.send index.body
app.get '/' do(req,res)
res.redirect('/top')
imba.serve app.listen(8001)
booleanが、yes/noっぽい
なんでやねんmrsekut.icon
State管理とかどうやるんだろうね