marker 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +11 -0
- data/lib/marker/templates.rb +1 -1
- 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
|
data/lib/marker/templates.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
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-
|
17
|
+
date: 2010-06-03 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|