Skip to content
Browse files

magic_encoding

  • Loading branch information...
1 parent c26c0f7 commit 7638dbb412d8fa23dba817e7d771cd9e35d2c15e @ahoward committed Dec 28, 2011
Showing with 12 additions and 2 deletions.
  1. +2 −1 lib/tagz.rb
  2. +1 −0 lib/tagz/rails.rb
  3. +1 −0 samples/a.rb
  4. +1 −0 samples/b.rb
  5. +1 −0 samples/c.rb
  6. +1 −0 samples/d.rb
  7. +1 −0 samples/e.rb
  8. +1 −0 samples/f.rb
  9. +1 −0 samples/g.rb
  10. +1 −1 tagz.gemspec
  11. +1 −0 test/tagz_test.rb
View
3 lib/tagz.rb
@@ -1,10 +1,11 @@
+# -*- encoding : utf-8 -*-
unless defined? Tagz
# core tagz functions
#
module Tagz
def Tagz.version()
- '9.0.0'
+ '9.1.0'
end
def Tagz.description
View
1 lib/tagz/rails.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
if defined?(Rails)
#_ = ActionView, ActionView::Base, ActionController, ActionController::Base
#ActionView::Base.send(:include, Tagz.globally)
View
1 samples/a.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#
# in the simplest case tagz generates html using a syntax which safely mixes
# in to any object
View
1 samples/b.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#
# tagz.rb mixes quite easily with your favourite templating engine, avoiding
# the need for '<% rows.each do |row| %> ... <% row.each do |cell| %> '
View
1 samples/c.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#
# once you've learned to generate html using tagz you're primed to generate
# xml too
View
1 samples/d.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#
# tagz.rb doesn't cramp your style, allowing even invalid html to be
# generated. note the use of the 'tagz' method, which can be used both to
View
1 samples/e.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#
# tagz.rb allows a safer method of mixin which requires any tagz methods to be
# insider a tagz block - tagz generating methods outside a tagz block with
View
1 samples/f.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#
# tagz.rb can generate really compact html. this is great to save bandwidth
# but can sometimes make reading the generated html a bit rough. of course
View
1 samples/g.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# tagz gives you low-level control of the output and makes even dashersized
# xml tagz easy enough to work with
#
View
2 tagz.gemspec
@@ -3,7 +3,7 @@
Gem::Specification::new do |spec|
spec.name = "tagz"
- spec.version = "9.0.0"
+ spec.version = "9.1.0"
spec.platform = Gem::Platform::RUBY
spec.summary = "tagz"
spec.description = "\n tagz.rb is generates html, xml, or any sgml variant like a small ninja\n running across the backs of a herd of giraffes swatting of heads like\n a mark-up weedwacker. weighing in at less than 300 lines of code\n tagz.rb adds an html/xml/sgml syntax to ruby that is both unobtrusive,\n safe, and available globally to objects without the need for any\n builder or superfluous objects. tagz.rb is designed for applications\n that generate html to be able to do so easily in any context without\n heavyweight syntax or scoping issues, like a ninja sword through\n butter.\n\n"
View
1 test/tagz_test.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#! /usr/bin/env ruby
require 'test/unit'

0 comments on commit 7638dbb

Please sign in to comment.
Something went wrong with that request. Please try again.