marker 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +11 -0
  2. data/lib/marker/templates.rb +1 -1
  3. metadata +3 -3
data/README CHANGED
@@ -70,6 +70,12 @@ If no template method is found, the template call is printed for debugging:
70
70
  >> puts Marker.parse( '{{t|one|two|name=val}}' ).to_s
71
71
  render:t( :text, ["one", "two"], {"name"=>"val"} )
72
72
 
73
+ Template names from markup are converted to lower case and have spaces replaced
74
+ with underscores to match ruby method naming conventions and to be case
75
+ insensitive for markup writers. For example,
76
+ "{{ My Template }}" => :my_template
77
+ "{{NaMe}}" => :name
78
+
73
79
  === Internal Links
74
80
 
75
81
  Internal links are implemented as links with default prefixes. The link prefix
@@ -91,6 +97,11 @@ The link base can also be given as a render option.
91
97
 
92
98
  == Command Line Program
93
99
 
100
+ Marker comes with a command-line program that will render both HTML and text.
101
+ If no input file is given, it reads from stdin.
102
+
103
+ Usage: marker [--format (html|text)] [input-file]
104
+
94
105
  == License
95
106
 
96
107
  Marker is copyright 2009 Ryan Blue and distributed under the terms of the GNU
@@ -22,7 +22,7 @@ module Marker #:nodoc:
22
22
 
23
23
  def target
24
24
  # sanitize the string to get a method name
25
- t.text_value.gsub(/\s/, '_').to_sym
25
+ t.text_value.downcase.gsub(/\s/, '_').to_sym
26
26
  end
27
27
 
28
28
  def arg_list( format, options )
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Blue
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-11 00:00:00 +02:00
17
+ date: 2010-06-03 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency