eldoy / weblang

Low code programming language for safe, portable and efficient code.
https://weblang.org
MIT License
3 stars 0 forks source link

Use @ or % or ? or ('') after setting for something #22

Closed eldoy closed 1 year ago

eldoy commented 2 years ago

Need this kind of syntax, if we have: api('user/create', { query: 1 })

how to model that with weblang?

@api?user/create:
  query: 1
eldoy commented 1 year ago

Use

=result@api:
  path: user/create
  params:
    query: 1