##// END OF EJS Templates
Null indexes
Null indexes

File last commit:

r25:4adc2646 default
r38:de154bb9 default
Show More
main-macros.lisp
15 lines | 308 B | text/x-common-lisp | CommonLispLexer
(in-package sugar-qsp.main)
(defpsmacro by-id (id)
`(chain document (get-element-by-id ,id)))
(defmacro+ps api-call (name &rest args)
`(,(intern (string-upcase name) "API") ,@args))
(defpsmacro root (&rest path)
`(@ data ,@path))
(defpsmacro in (key obj)
`(chain ,obj (has-own-property ,key)))