Wrap a block of HAML
inside a build_docss {}
block and it will output the corresponding HAML
and HTML
code needed to display that object.
Majorly just a WIP!
If you want to play around, for now run ruby play.rb
and it will build test.html.haml
- Clone the app:
git clone https://github.com/kormie/DoCSS
- Bundle install:
bundle
- Run Rack:
bundle exec rackup
- View test page:
localhost:9292/test
- View README:
localhost:9292/
(works sometimes)
TODO:
-
Manage CSS betterCSS now managed via Rack middleware
-
Implement watcher to auto rebuild filesHaml files compiled per request. All other files handled via
Rack::Reloader
-
Deal with required wrapper tags better
-
Turn into a gem
-
FixDoCSS::Indexer
middlewareIndex now created only when navigating to
index.html
or/
and is created on the fly
= build_docss do
.taco
This is where tacos go!
%span
This is a span about tacos
%a{href: 'http://www.tacos.com'}
This is a link about tacos!
%span#nachos Nachos are cool too!