8000 GitHub - equwal/blaher: Gilbert Baumann's blaher
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

equwal/blaher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Blaher

Say stuff with a template that has variables inside. It's like cowsay. Plus it's a macro, which is neat.

Examples

(with-output-to-string (bag) (blah bag "Hi {{person}}!" :person "Joe")); => "Hi Joe!"

(blah t "Hi {{person}}! I am {{computer-assistant}}, here to help you, {{person}}, with all of your problems."
     :person "Fred"
     :computer-assistant "Eliza")

; => Hi Fred! I am Eliza, here to help you, Fred, with all of your problems.
(blaher "Hi {{person}}! I am {{computer-assistant}}, here to help you, {{person}}, with all of your problems.")

macro expands to:

(LAMBDA (#:STREAM.6790 &KEY ((:COMPUTER-ASSISTANT #:G6791))
         ((:PERSON #:G6792)))
  (PRINC "Hi " #:STREAM.6790)
  (PRINC #:G6792 #:STREAM.6790)
  (PRINC "! I am " #:STREAM.6790)
  (PRINC #:G6791 #:STREAM.6790)
  (PRINC ", here to help you, " #:STREAM.6790)
  (PRINC #:G6792 #:STREAM.6790)
  (PRINC ", with all of your problems." #:STREAM.6790))

source

About

Gilbert Baumann's blaher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0