mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 11:08:45 +03:00
Some support stuff.
This commit is contained in:
parent
6f17001337
commit
69de3fdb92
20
main/bin/liquid.hoon
Normal file
20
main/bin/liquid.hoon
Normal file
@ -0,0 +1,20 @@
|
||||
!:
|
||||
:: /=main=/bin/liquid/hoon
|
||||
::
|
||||
=> .(- `[who=@p how=path]`-)
|
||||
|= [est=time eny=@uw]
|
||||
|= arg=*
|
||||
=+ ^= lok ^- case
|
||||
?: =(~ arg) [%da est]
|
||||
?> =(~ +.arg)
|
||||
((hard case) -.arg)
|
||||
=+ cav=(scot (dime lok))
|
||||
=+ top=`path`[(scot %p who) %arvo cav ~]
|
||||
=+ pax=`path`(weld top `path`[%hoon ~])
|
||||
~& %liquid-start
|
||||
=+ gen=(reck pax)
|
||||
~& %liquid-parsed
|
||||
=+ ken=q:(~(mint ut %noun) %noun gen)
|
||||
~& %liquid-compiled
|
||||
:_ ~ :_ ~
|
||||
[%xx %sage [%dummy %pill ~] [ken 0]]
|
Loading…
Reference in New Issue
Block a user