Skip to content

bobjflong/brig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###brig

brig is a static site generator written in drog_lisp, and exists mainly as a non trivial example of drog_lisp code. It uses the Textile markup language for writing posts.

####Dependencies

  • ruby
  • drog_lisp
  • pry (for now)
  • rvm (or edit the shebang in ./brig.rb)
  • RedCloth
  • Mustache
  • maybe other things I can't remember.

####Commands

./brig.rb new testing-1-2-3  #create a post with shortcode testing-1-2-3
./brig.rb search testing     #search for a post containing "testing"
./brig.rb search test.+-3    #regexes are also ok
./brig.rb edit test.+-3      #post templates use the textile markup language
./brig.rb build              #builds site containing a paginated index, and post pages
./brig.rb view               #starts a server (default WEBrick)

####Config

lisp/config.drog contains some configuration items, which should be self explanatory.

####Templates templates/layout.html will be where your post(s) are rendered. This page provides a {{{ yield }}} tag designating where your post(s) should go. It also provides {{{ next_page }}} and {{{ prev_page }}} tags for pagination links.

Individual posts are provided with a {{{ link }}} tag for permalinks, and a {{{ updated }}} tag with the ctime of the file.

About

a static site generator in drog_lisp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages