Sha256: 4006653f57ad967db1f927f5dc51c2892dc178c19f5fa80068b75f95f95c0478

Contents?: true

Size: 778 Bytes

Versions: 22

Compression:

Stored size: 778 Bytes

Contents

# coding: utf-8

module UzuUzu
  module Helper
    module XHtml
      
      #
      #
      #
      def meta(name, content)
        "<meta name=\"#{name}\" content=\"#{content}\">"
      end
      #
      #
      #
      def css(css_path, media='screen')
        "<link href=\"#{css_path}\" media=\"#{media}\" rel=\"stylesheet\" type=\"text/css\" />"
      end
      #
      #
      #
      def css_for(*args)
        args.map do |css_path|
          css(css_path)
        end.join("\n")
      end
      #
      #
      #
      def js(js_path)
        "<script src=\"#{js_path}\" type=\"text/javascript\"></script>"
      end
      #
      #
      #
      def js_for(*args)
        args.map do |js_path|
          js(js_path)
        end.join("\n")
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
uzuuzu-core-0.1.15 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.14 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.13 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.11 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.10 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.8 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.7 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.6 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.5 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.4 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.3 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.2.001 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.2 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.1 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.1.0 lib/uzuuzu-core/helper/xhtml.rb
uzuuzu-core-0.0.15 lib/uzuuzu/helper/xhtml.rb
uzuuzu-core-0.0.14 lib/uzuuzu/helper/xhtml.rb
uzuuzu-core-0.0.13 lib/uzuuzu/helper/xhtml.rb
uzuuzu-core-0.0.12 lib/uzuuzu/helper/xhtml.rb
uzuuzu-core-0.0.10 lib/uzuuzu/helper/xhtml.rb