Permalink
Browse files

Updated templates and doc formatting

  • Loading branch information...
quirkey committed Jan 5, 2011
1 parent 0794889 commit 4b11b80efd8facabc9c3d8da1214ccfed8cdd340
Showing with 24 additions and 4 deletions.
  1. +8 −0 Gemfile
  2. +10 −0 Gemfile.lock
  3. +3 −1 lib/plugins/sammy.template.js
  4. +1 −1 vendor/jsdoc/jsdoc.rb
  5. +2 −2 vendor/jsdoc/templates/klass.haml
View
@@ -1,5 +1,13 @@
source "http://rubygems.org"
+group :development do
+ gem 'rake'
+ gem 'haml', '3.0.24'
+ gem 'rdiscount'
+ gem 'activesupport', '2.3.8'
+ gem 'yajl-ruby'
+end
+
group :test do
gem 'vegas'
gem 'sinatra'
View
@@ -1,17 +1,27 @@
GEM
remote: http://rubygems.org/
specs:
+ activesupport (2.3.8)
+ haml (3.0.24)
rack (1.2.1)
+ rake (0.8.7)
+ rdiscount (1.6.5)
sinatra (1.1.0)
rack (~> 1.1)
tilt (~> 1.1)
tilt (1.1)
vegas (0.1.8)
rack (>= 1.0.0)
+ yajl-ruby (0.7.8)
PLATFORMS
ruby
DEPENDENCIES
+ activesupport (= 2.3.8)
+ haml (= 3.0.24)
+ rake
+ rdiscount
sinatra
vegas
+ yajl-ruby
@@ -58,6 +58,7 @@
//
// Here is an example template (user.template):
//
+ // // user.template
// <div class="user">
// <div class="user-name"><%= user.name %></div>
// <% if (user.photo_url) { %>
@@ -67,9 +68,10 @@
//
// Given that is a publicly accesible file, you would render it like:
//
+ // // app.js
// $.sammy(function() {
// // include the plugin
- // this.use(Sammy.Template);
+ // this.use('Template');
//
// this.get('#/', function() {
// // the template is rendered in the current context.
View
@@ -166,7 +166,7 @@ def convert_doc(text)
final_text << l.gsub(/^\ #\s/,'#')
end
final_text = RDiscount.new(final_text).to_html
- final_text.gsub!(/<pre><code>/m, "<pre class='prettyprint'><code>\n")
+ final_text.gsub!(/<pre><code>/m, "<pre class='prettyprint'><code>")
final_text
end
@@ -6,7 +6,7 @@
=klass[:args].join(', ')
)
.doc><
- = klass[:doc] || ""
+ =preserve klass[:doc] || ""
- unless klass[:attributes].empty?
%h3.list Attributes
%ul
@@ -27,7 +27,7 @@
\=
%span=attribute[:default]
.doc><
- = attribute[:doc]
+ =preserve attribute[:doc]
- unless klass[:methods].empty?
-klass[:methods].each do |meth|
=render('method', :klass => klass, :meth => meth, :individual => false)

0 comments on commit 4b11b80

Please sign in to comment.