luca 0.9.91 → 0.9.899

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. data/CHANGELOG +1 -11
  2. data/Gemfile +0 -3
  3. data/Gemfile.lock +0 -30
  4. data/Rakefile +8 -2
  5. data/app/assets/javascripts/luca/components/collection_view.coffee +3 -7
  6. data/app/assets/javascripts/luca/components/grid_layout_view.coffee +1 -0
  7. data/app/assets/javascripts/luca/containers/card_view.coffee +2 -2
  8. data/app/assets/javascripts/luca/containers/modal_view.coffee +9 -9
  9. data/app/assets/javascripts/luca/containers/viewport.coffee +5 -2
  10. data/app/assets/javascripts/luca/core/collection.coffee +4 -18
  11. data/app/assets/javascripts/luca/core/model.coffee +1 -1
  12. data/app/assets/javascripts/luca/development/code_sync_manager.coffee +3 -6
  13. data/app/assets/javascripts/luca/framework.coffee +1 -1
  14. data/app/assets/stylesheets/luca/components/viewport.scss +4 -0
  15. data/bin/luca +2 -7
  16. data/lib/luca.rb +0 -2
  17. data/lib/luca/cli.rb +0 -3
  18. data/lib/luca/component_definition.rb +1 -1
  19. data/lib/luca/luca_application.rb +3 -5
  20. data/lib/luca/stylesheet.rb +3 -2
  21. data/lib/luca/version.rb +1 -1
  22. data/site/Gemfile +3 -1
  23. data/site/Gemfile.lock +42 -39
  24. data/site/config.rb +3 -3
  25. data/site/source/{app/assets/javascripts → javascripts}/dependencies.js.coffee +0 -0
  26. data/site/source/javascripts/docs/application.coffee +33 -0
  27. data/site/source/{app/assets/javascripts/docs/collections/luca_documentation.coffee → javascripts/docs/collections/framework_documentation.coffee} +2 -7
  28. data/site/source/{app/assets/javascripts → javascripts}/docs/collections/index.coffee +0 -0
  29. data/site/source/javascripts/docs/config.coffee +3 -0
  30. data/site/source/{app/assets/javascripts → javascripts}/docs/index.coffee +0 -0
  31. data/site/source/{app/assets/javascripts → javascripts}/docs/lib/router.coffee +0 -0
  32. data/site/source/{app/assets/javascripts → javascripts}/docs/lib/util.coffee +0 -0
  33. data/site/source/{app/assets/javascripts → javascripts}/docs/models/component.coffee +0 -0
  34. data/site/source/{app/assets/javascripts → javascripts}/docs/models/index.coffee +0 -0
  35. data/site/source/{app/assets/javascripts → javascripts}/docs/templates/component_documentation.jst.ejs +14 -14
  36. data/site/source/javascripts/docs/templates/home.jst.ejs +1 -0
  37. data/site/source/{app/assets/javascripts → javascripts}/docs/templates/layouts/main.jst.ejs +0 -0
  38. data/site/source/{app/assets/javascripts → javascripts}/docs/templates/left_navigation.jst.ejs +0 -0
  39. data/site/source/{app/assets/javascripts/docs/views/components/code_editor/index.coffee → javascripts/docs/templates/navigation.jst.ejs} +0 -0
  40. data/site/source/{app/assets/javascripts → javascripts}/docs/templates/pages/getting_started.jst.ejs +0 -0
  41. data/site/source/javascripts/docs/templates/pages/home.jst.ejs +31 -0
  42. data/site/source/javascripts/docs/views/components/.gitkeep +0 -0
  43. data/site/source/javascripts/docs/views/components/gist_editor/index.coffee +7 -0
  44. data/site/source/{app/assets/javascripts → javascripts}/docs/views/index.coffee +0 -0
  45. data/site/source/{app/assets/javascripts → javascripts}/docs/views/pages/browse_source.coffee +0 -9
  46. data/site/source/javascripts/docs/views/pages/browse_source/details.coffee +69 -0
  47. data/site/source/{app/assets/javascripts → javascripts}/docs/views/pages/browse_source/list.coffee +1 -1
  48. data/site/source/{app/assets/javascripts → javascripts}/docs/views/pages/home.coffee +0 -0
  49. data/site/source/{app/assets/javascripts → javascripts}/docs/views/views/top_navigation.coffee +0 -0
  50. data/site/source/{app/assets/javascripts/luca-framework-documentation.js → javascripts/luca-docs.js} +0 -0
  51. data/site/source/javascripts/site.js +1 -0
  52. data/site/source/javascripts/site.js.coffee +1 -0
  53. data/site/source/{app/assets/javascripts → javascripts}/vendor/codemirror.js +0 -0
  54. data/site/source/{app/assets/javascripts → javascripts}/vendor/coffeescript.js +0 -0
  55. data/site/source/{app/assets/javascripts → javascripts}/vendor/css.js +0 -0
  56. data/site/source/{app/assets/javascripts → javascripts}/vendor/htmlmixed.js +0 -0
  57. data/site/source/{app/assets/javascripts → javascripts}/vendor/javascript.js +0 -0
  58. data/site/source/javascripts/vendor/luca-dependencies.min.js +6 -0
  59. data/site/source/javascripts/vendor/luca.min.js +5 -0
  60. data/site/source/{app/assets/javascripts → javascripts}/vendor/modernizr-2.6.1.min.js +0 -0
  61. data/site/source/{app/assets/javascripts → javascripts}/vendor/vim.js +0 -0
  62. data/site/source/layouts/layout.haml +7 -12
  63. data/site/source/stylesheets/docs/application.css.scss +16 -0
  64. data/site/source/{app/assets/stylesheets → stylesheets}/docs/browse-source.css.scss +0 -0
  65. data/site/source/{app/assets/stylesheets → stylesheets}/site.css.scss +0 -0
  66. data/site/source/{app/assets/stylesheets → stylesheets}/vendor/codemirror.css +0 -0
  67. data/site/source/{app/assets/stylesheets → stylesheets}/vendor/twilight.css +0 -0
  68. data/spec/javascripts/containers/card_view_spec.coffee +5 -58
  69. data/spec/javascripts/core/collection_spec.coffee +1 -1
  70. data/vendor/assets/javascripts/luca-development.min.js +1 -1
  71. data/vendor/assets/javascripts/luca.full.min.js +5 -5
  72. data/vendor/assets/javascripts/luca.min.js +5 -5
  73. data/vendor/assets/stylesheets/luca-components.css +2 -0
  74. metadata +48 -151
  75. data/lib/luca/cli/server.rb +0 -20
  76. data/lib/luca/cli/sync.rb +0 -40
  77. data/lib/luca/cli/watch.rb +0 -16
  78. data/lib/luca/server.rb +0 -7
  79. data/lib/luca/watcher.rb +0 -72
  80. data/site/source/app/assets/javascripts/docs-docs.js +0 -1
  81. data/site/source/app/assets/javascripts/docs/application.coffee +0 -64
  82. data/site/source/app/assets/javascripts/docs/collections/docs_documentation.coffee +0 -17
  83. data/site/source/app/assets/javascripts/docs/collections/github_repositories.coffee +0 -7
  84. data/site/source/app/assets/javascripts/docs/collections/public_gists.coffee +0 -4
  85. data/site/source/app/assets/javascripts/docs/config.coffee +0 -5
  86. data/site/source/app/assets/javascripts/docs/models/github_repository.coffee +0 -3
  87. data/site/source/app/assets/javascripts/docs/templates/examples_browser/overview.jst.ejs +0 -4
  88. data/site/source/app/assets/javascripts/docs/templates/examples_browser/selector.jst.ejs +0 -11
  89. data/site/source/app/assets/javascripts/docs/templates/github_repository.jst.ejs +0 -4
  90. data/site/source/app/assets/javascripts/docs/templates/pages/home.jst.ejs +0 -57
  91. data/site/source/app/assets/javascripts/docs/views/components/code_editor.coffee +0 -45
  92. data/site/source/app/assets/javascripts/docs/views/components/component_documentation.coffee +0 -72
  93. data/site/source/app/assets/javascripts/docs/views/pages/browse_source/details.coffee +0 -37
  94. data/site/source/app/assets/javascripts/docs/views/pages/component_editor.coffee +0 -10
  95. data/site/source/app/assets/javascripts/docs/views/pages/examples_browser.coffee +0 -102
  96. data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/docs.coffee +0 -12
  97. data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/source.coffee +0 -13
  98. data/site/source/app/assets/javascripts/docs/views/views/api_browser/index.coffee +0 -43
  99. data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee +0 -14
  100. data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee +0 -39
  101. data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/basic_example.coffee +0 -38
  102. data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/complex_layout.coffee +0 -110
  103. data/site/source/app/assets/javascripts/luca-docs.js +0 -1
  104. data/site/source/app/assets/javascripts/site.js.coffee +0 -4
  105. data/site/source/app/assets/javascripts/vendor/js-beautify.js +0 -1353
  106. data/site/source/app/assets/stylesheets/docs/api-browser.css.scss +0 -5
  107. data/site/source/app/assets/stylesheets/docs/application.css.scss +0 -35
  108. data/site/source/app/assets/stylesheets/docs/scrollable-table.css.scss +0 -5
  109. data/site/source/app/assets/stylesheets/vendor/prettify-tomorrow-night-bright.css +0 -160
@@ -1,4 +1,4 @@
1
- source "https://rubygems.org"
1
+ source :rubygems
2
2
 
3
3
  gem "middleman", "~>3.0.5"
4
4
  gem "middleman-favicon-maker"
@@ -6,3 +6,5 @@ gem "middleman-livereload"
6
6
  gem "susy", "~>1.0.5"
7
7
  gem "redcarpet"
8
8
  gem 'ejs'
9
+ gem 'luca'
10
+ gem 'coffee-filter' # Coffeescript filter for HAML
@@ -1,10 +1,14 @@
1
1
  GEM
2
- remote: https://rubygems.org/
2
+ remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.2.12)
4
+ activesupport (3.2.8)
5
5
  i18n (~> 0.6)
6
6
  multi_json (~> 1.0)
7
+ addressable (2.3.2)
7
8
  chunky_png (1.2.7)
9
+ coffee-filter (0.1.1)
10
+ coffee-script (>= 2.2.0)
11
+ haml (>= 3.0.18)
8
12
  coffee-script (2.2.0)
9
13
  coffee-script-source
10
14
  execjs
@@ -14,32 +18,30 @@ GEM
14
18
  fssm (>= 0.2.7)
15
19
  sass (~> 3.1)
16
20
  ejs (1.1.1)
17
- em-websocket (0.4.0)
21
+ em-websocket (0.3.8)
22
+ addressable (>= 2.1.1)
18
23
  eventmachine (>= 0.12.9)
19
- http_parser.rb (~> 0.5.3)
20
24
  eventmachine (1.0.0)
21
25
  execjs (1.4.0)
22
26
  multi_json (~> 1.0)
23
- favicon_maker (0.0.9)
27
+ favicon_maker (0.0.7)
24
28
  mini_magick (~> 3.0)
25
- ffi (1.4.0)
26
- fssm (0.2.10)
27
- haml (4.0.0)
28
- tilt
29
+ ffi (1.1.5)
30
+ fssm (0.2.9)
31
+ haml (3.1.7)
29
32
  hike (1.2.1)
30
- http_parser.rb (0.5.3)
31
33
  http_router (0.10.2)
32
34
  rack (>= 1.0.0)
33
35
  url_mount (~> 0.2.1)
34
36
  i18n (0.6.1)
35
- listen (0.5.3)
37
+ listen (0.5.2)
36
38
  maruku (0.6.1)
37
39
  syntax (>= 1.0.0)
38
- middleman (3.0.11)
39
- middleman-core (= 3.0.11)
40
- middleman-more (= 3.0.11)
41
- middleman-sprockets (~> 3.0.6)
42
- middleman-core (3.0.11)
40
+ middleman (3.0.5)
41
+ middleman-core (= 3.0.5)
42
+ middleman-more (= 3.0.5)
43
+ middleman-sprockets (~> 3.0.2)
44
+ middleman-core (3.0.5)
43
45
  activesupport (~> 3.2.6)
44
46
  bundler (~> 1.1)
45
47
  listen (~> 0.5.2)
@@ -49,15 +51,15 @@ GEM
49
51
  rb-inotify (~> 0.8.8)
50
52
  thor (~> 0.15.4)
51
53
  tilt (~> 1.3.1)
52
- middleman-favicon-maker (3.0.3)
53
- favicon_maker (~> 0.0.9)
54
+ middleman-favicon-maker (3.0.0)
55
+ favicon_maker (~> 0.0.7)
54
56
  middleman-core (>= 3.0.0)
55
- middleman-livereload (3.0.1)
57
+ middleman-livereload (3.0.0)
56
58
  em-websocket (>= 0.2.0)
57
- middleman-core (~> 3.0.2)
59
+ middleman-core (~> 3.0.0)
58
60
  multi_json (~> 1.0)
59
61
  rack-livereload
60
- middleman-more (3.0.11)
62
+ middleman-more (3.0.5)
61
63
  coffee-script (~> 2.2.0)
62
64
  coffee-script-source (~> 1.3.3)
63
65
  compass (>= 0.12.2)
@@ -65,17 +67,17 @@ GEM
65
67
  haml (>= 3.1.6)
66
68
  i18n (~> 0.6.0)
67
69
  maruku (~> 0.6.0)
68
- middleman-core (= 3.0.11)
70
+ middleman-core (= 3.0.5)
69
71
  padrino-helpers (= 0.10.7)
70
72
  sass (>= 3.1.20)
71
73
  uglifier (~> 1.2.6)
72
- middleman-sprockets (3.0.6)
73
- middleman-more (>= 3.0.1)
74
- sprockets (~> 2.1, < 2.5)
75
- sprockets-sass (~> 0.9.0)
76
- mini_magick (3.5.0)
74
+ middleman-sprockets (3.0.2)
75
+ middleman-more (~> 3.0.1)
76
+ sprockets (~> 2.1)
77
+ sprockets-sass (~> 0.8.0)
78
+ mini_magick (3.4)
77
79
  subexec (~> 0.2.1)
78
- multi_json (1.6.1)
80
+ multi_json (1.3.6)
79
81
  padrino-core (0.10.7)
80
82
  activesupport (~> 3.2.0)
81
83
  http_router (~> 0.10.2)
@@ -85,28 +87,28 @@ GEM
85
87
  padrino-helpers (0.10.7)
86
88
  i18n (~> 0.6)
87
89
  padrino-core (= 0.10.7)
88
- rack (1.4.5)
89
- rack-livereload (0.3.11)
90
+ rack (1.4.1)
91
+ rack-livereload (0.3.8)
90
92
  rack
91
- rack-protection (1.3.2)
93
+ rack-protection (1.2.0)
92
94
  rack
93
- rack-test (0.6.2)
95
+ rack-test (0.6.1)
94
96
  rack (>= 1.0)
95
- rb-fsevent (0.9.3)
97
+ rb-fsevent (0.9.2)
96
98
  rb-inotify (0.8.8)
97
99
  ffi (>= 0.5.0)
98
- redcarpet (2.2.2)
100
+ redcarpet (2.1.1)
99
101
  sass (3.2.5)
100
- sinatra (1.3.4)
101
- rack (~> 1.4)
102
- rack-protection (~> 1.3)
102
+ sinatra (1.3.3)
103
+ rack (~> 1.3, >= 1.3.6)
104
+ rack-protection (~> 1.2)
103
105
  tilt (~> 1.3, >= 1.3.3)
104
- sprockets (2.4.5)
106
+ sprockets (2.6.0)
105
107
  hike (~> 1.2)
106
108
  multi_json (~> 1.0)
107
109
  rack (~> 1.0)
108
110
  tilt (~> 1.1, != 1.3.0)
109
- sprockets-sass (0.9.1)
111
+ sprockets-sass (0.8.0)
110
112
  sprockets (~> 2.0)
111
113
  tilt (~> 1.1)
112
114
  subexec (0.2.2)
@@ -126,6 +128,7 @@ PLATFORMS
126
128
  ruby
127
129
 
128
130
  DEPENDENCIES
131
+ coffee-filter
129
132
  ejs
130
133
  middleman (~> 3.0.5)
131
134
  middleman-favicon-maker
@@ -51,11 +51,11 @@ page "documentation.html", :layout => false
51
51
  # end
52
52
  # end
53
53
 
54
- set :css_dir, 'app/assets/stylesheets'
54
+ set :css_dir, 'stylesheets'
55
55
 
56
- set :js_dir, 'app/assets/javascripts'
56
+ set :js_dir, 'javascripts'
57
57
 
58
- set :images_dir, 'app/assets/images'
58
+ set :images_dir, 'images'
59
59
 
60
60
  # Build-specific configuration
61
61
  configure :build do
@@ -0,0 +1,33 @@
1
+ app = Docs.register "Docs.Application"
2
+ app.extends "Luca.Application"
3
+ app.configuration
4
+ el: "#viewport"
5
+ fluid: true
6
+ fullscreen: true
7
+ applyWrapper: false
8
+ name: "DocsApp"
9
+
10
+ app.configuration
11
+ collectionManager:
12
+ initialCollections:[
13
+ "framework_documentation"
14
+ ]
15
+ router: "Docs.Router"
16
+ routes:
17
+ "": "home#index"
18
+ "docs": "browse_source#index"
19
+ "get-started": "getting_started#index"
20
+
21
+ app.contains
22
+ component: "home"
23
+ ,
24
+ component: "browse_source"
25
+ ,
26
+ name: "getting_started"
27
+ type: "page"
28
+ layout: "pages/getting_started"
29
+ index: _.once ()->
30
+ @$('pre').addClass('prettyprint')
31
+ window.prettyPrint()
32
+
33
+ app.register()
@@ -1,14 +1,9 @@
1
- collection = Docs.register "Docs.collections.LucaDocumentation"
1
+ collection = Docs.register "Docs.collections.FrameworkDocumentation"
2
2
  collection.extends "Luca.Collection"
3
3
  collection.defines
4
4
  model: Docs.models.Component
5
- appNamespace: "Luca"
6
-
7
- getSource: ()->
8
- Luca.util.resolve("#{ @appNamespace }.documentation")
9
-
10
5
  fetch: ()->
11
- models = _( @getSource() ).sortBy("class_name")
6
+ models = _(Luca.documentation).sortBy("class_name")
12
7
  found = {}
13
8
  models = for model in models when not found[ model.class_name ]
14
9
  found[ model.class_name ] = true
@@ -0,0 +1,3 @@
1
+ Luca.initialize "Docs",
2
+ baseParams: false
3
+ modelBootstrap: false
@@ -1,12 +1,12 @@
1
1
  <div class="component-documentation-wrapper">
2
- <div class="header-documentation"></div>
2
+
3
3
  <div class="public properties">
4
4
  <h4>Public Configuration</h4>
5
5
  <table class="table table-condensed table-striped">
6
6
  <thead>
7
- <th width="15%">Property</th>
8
- <th width="15%">Defaults</th>
9
- <th width="70%">Documentation</th>
7
+ <th width="20%">Property</th>
8
+ <th width="20%">Defaults</th>
9
+ <th width="60%">Documentation</th>
10
10
  </thead>
11
11
  <tbody>
12
12
  </tbody>
@@ -16,9 +16,9 @@
16
16
  <h4>Public Methods</h4>
17
17
  <table class="table table-condensed table-striped">
18
18
  <thead>
19
- <th width="15%">Method</th>
20
- <th width="15%">Args</th>
21
- <th width="70%">Documentation</th>
19
+ <th width="20%">Method</th>
20
+ <th width="20%">Args</th>
21
+ <th width="60%">Documentation</th>
22
22
  </thead>
23
23
  <tbody>
24
24
  </tbody>
@@ -29,9 +29,9 @@
29
29
  <h4>Private Configuration</h4>
30
30
  <table class="table table-condensed table-striped">
31
31
  <thead>
32
- <th width="15%">Property</th>
33
- <th width="15%">Defaults</th>
34
- <th width="70%">Documentation</th>
32
+ <th width="20%">Property</th>
33
+ <th width="20%">Defaults</th>
34
+ <th width="60%">Documentation</th>
35
35
  </thead>
36
36
  <tbody>
37
37
  </tbody>
@@ -41,15 +41,15 @@
41
41
  <h4>Private Methods</h4>
42
42
  <table class="table table-condensed table-striped">
43
43
  <thead>
44
- <th width="15%">Method</th>
45
- <th width="15%">Args</th>
46
- <th width="70%">Documentation</th>
44
+ <th width="20%">Method</th>
45
+ <th width="20%">Args</th>
46
+ <th width="60%">Documentation</th>
47
47
  </thead>
48
48
  <tbody>
49
49
  </tbody>
50
50
  </table>
51
51
  </div>
52
52
 
53
- <h4 class="source">Source</h4>
53
+ <h4>Source</h4>
54
54
  <pre class="source pre-scrollable prettyprint"></pre>
55
55
  </div>
@@ -0,0 +1 @@
1
+ <h1>Hello How you doing</h1>
@@ -0,0 +1,31 @@
1
+ <div class="hero-unit">
2
+ <h1>Luca.js</h1>
3
+ <p>A complete front-end solution for building well architected client side applications.</p>
4
+ <p>Based on <a href="http://backbonejs.org">Backbone.js</a> and <a href="http://twitter.github.com/bootstrap">Twitter Bootstrap</a>.</p>
5
+ <a class="btn btn-large btn-primary" href="//datapimp.gitub.com/luca/downloads/luca-latest.zip">Download Luca</a>
6
+
7
+ <ul class="links">
8
+ <li>
9
+ <a href="https://github.com/datapimp/luca">Github Project</a>
10
+ </li>
11
+ <li>
12
+ <a href="#examples">Examples</a>
13
+ </li>
14
+ <li>
15
+ <a href="#contribute">Contribute</a>
16
+ </li>
17
+ <li>
18
+ Version <%= Luca.VERSION %>
19
+ </li>
20
+ </ul>
21
+
22
+ </div>
23
+
24
+ <div>
25
+ A labor of love by <a href="http://twitter.com/soederpop">@soederpop</a> for my son and my comrades at <a href="https://benchprep.com">@benchprep</a>.
26
+ </div>
27
+
28
+ <div>
29
+ <a href="https://github.com/datapimp/luca/issues">Issues</a>
30
+ <a href="https://github.com/datapimp/luca/blob/master/CHANGELOG">Changelog</a>
31
+ </div>
@@ -0,0 +1,7 @@
1
+ #= require_tree ./components
2
+ #= require_self
3
+ editor = Docs.register "Docs.components.GistEditor"
4
+ editor.extends "Luca.Container"
5
+
6
+ editor.contains
7
+ role: "browser"
@@ -14,17 +14,8 @@ view.contains
14
14
  component: "component_details"
15
15
 
16
16
  view.privateMethods
17
-
18
17
  index: ()->
19
18
  @selectComponent(@getComponentList().getCollection().at(0))
20
-
21
- show: (componentName)->
22
- component = @getComponentList().getCollection().detect (model)->
23
- model.get("class_name") is componentName
24
-
25
- return @index() unless component?
26
-
27
- @selectComponent(component)
28
19
 
29
20
  selectComponent: (e)->
30
21
  list = @getComponentList()
@@ -0,0 +1,69 @@
1
+ view = Docs.register "Docs.views.ComponentDetails"
2
+ view.extends "Luca.Container"
3
+
4
+ view.configuration
5
+ rowFluid: true
6
+
7
+ view.contains
8
+ role: "documentation"
9
+ span: 5
10
+ ,
11
+ role: "source"
12
+ type: "panel"
13
+ bodyTemplate: "component_documentation"
14
+ span: 7
15
+
16
+ view.defines
17
+ afterRender: ()->
18
+ @getSource().$el.hide()
19
+
20
+ # Loads a model from the FrameworkDocumentation
21
+ # collection, and displays information about it in
22
+ # the documentation and source panels
23
+ load: (model)->
24
+ source = @getSource()
25
+ documentation = @getDocumentation()
26
+ prototype = Luca.util.resolve( model.get("class_name") )?.prototype || {}
27
+
28
+ source.$('.table tbody').empty()
29
+ documentation.$el.show().empty()
30
+ documentation.$el.append("<h2>#{ model.get('class_name') }</h2>")
31
+ documentation.$el.append("<div class='header-documentation'>#{ model.get('header_documentation') }</div>")
32
+
33
+ source.$el.show()
34
+ source.$('.methods, .properties').hide()
35
+
36
+ groups = model.documentation().details
37
+
38
+ unless _.isEmpty(groups?.publicProperties)
39
+ list = source.$('.public.properties').show().find('.table tbody')
40
+ for method, details of groups.publicProperties when not _.isFunction(prototype[method])
41
+ details ||= {}
42
+ list.append "<tr><td>#{ method }</td><td></td><td>#{ details.documentation || "" }</td></tr>"
43
+
44
+ unless _.isEmpty(groups?.privateProperties)
45
+ list = source.$('.private.properties').show().find('.table tbody')
46
+ for method, details of groups.privateProperties when not _.isFunction(prototype[method])
47
+ details ||= {}
48
+ list.append "<tr><td>#{ method }</td><td></td><td>#{ details.documentation || "" }</td></tr>"
49
+
50
+ unless _.isEmpty(groups?.publicMethods)
51
+ list = source.$('.public.methods').show().find('.table tbody')
52
+ for method, details of groups.publicMethods when _.isFunction(prototype[method])
53
+ details ||= {}
54
+ list.append "<tr><td>#{ method }</td><td></td><td>#{ details.documentation || "" }</td></tr>"
55
+
56
+ unless _.isEmpty(groups?.privateMethods)
57
+ list = source.$('.private.methods').show().find('.table tbody')
58
+ for method, details of groups.privateMethods when _.isFunction(prototype[method])
59
+ details ||= {}
60
+ list.append "<tr><td>#{ method }</td><td></td><td>#{ details.documentation || "" }</td></tr>"
61
+
62
+ source.$('pre.source').html( model.contentsWithoutHeader() )
63
+
64
+ @prettyPrint()
65
+
66
+ # Applies syntax highlighting to all pre elements
67
+ prettyPrint: ()->
68
+ @$('pre').addClass('prettyprint')
69
+ window.prettyPrint?()