Skip to content

Instantly share code, notes, and snippets.

@dublindan
Created December 4, 2009 00:27
Show Gist options
  • Save dublindan/248721 to your computer and use it in GitHub Desktop.
Save dublindan/248721 to your computer and use it in GitHub Desktop.
(run-components
(make-component "Comp1"
{:init (fn [v s]
(event :print nil)
(event :set-msg "Ho")
(event :print nil)
{:msg "Hi"})
:print (fn [v s]
(println (:msg s)))
:set-msg (fn [v s]
{:msg v})})
(make-component "Comp2"
{:init (fn [v s]
{:msg "Hello"})
:print (fn [v s]
(println (:msg s)))}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment