Sha256: 83d7f44f447c26261abefa9f50565a81be365c0b211829bd6e76c9dde6c82dbb

Contents?: true

Size: 643 Bytes

Versions: 14

Compression:

Stored size: 643 Bytes

Contents

$:.unshift File.expand_path('../../lib', __FILE__)
require 'slight/dsl'

module Slight
  class DSL
    def run
        doctype :html
        html do
          head do
            title "Example"
            use "/css/bootstrap.css"
            use "/script/jquery.js"
            use "/script/angular.js"
          end
          body do
            div "panel" do
              nav "nav nav-pill", id:"NavMenu", css:"color: red" do
                img! src:"/images/icon1.png"
              end
            end
            br
            hr
          end
        end
    end
  end
end

Slight::DSL.new(STDOUT).run

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
slight-lang-1.3.6 example/core.rb
slight-lang-1.3.5 example/core.rb
slight-lang-1.3.4 example/core.rb
slight-lang-1.3.3 example/core.rb
slight-lang-1.3.2 example/core.rb
slight-lang-1.3.1 example/core.rb
slight-lang-1.3.0 example/core.rb
slight-lang-1.2.3 example/core.rb
slight-lang-1.2.1.3 example/core.rb
slight-lang-1.2.1.2 example/core.rb
slight-lang-1.2.1.1 example/core.rb
slight-lang-1.1.6 example/core.rb
slight-lang-1.2.0 example/core.rb
slight-lang-1.0.1 example/core.rb