Permalink
Browse files

rdoc for Externals class

  • Loading branch information...
1 parent 45c6542 commit 22027760b6efddbd923dc6693e0febb38c4c8b0c @alexch committed Jul 17, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/erector/externals.rb
View
@@ -1,4 +1,10 @@
module Erector
+
+ # Externals are a mechanism by which a widget can declare page-level
+ # resources upon which it depends. They are not emitted during the widget's
+ # normal rendering process. Rather, the Erector::Widget::Page keeps track of
+ # all the widgets it renders, then goes back and inserts the proper tags for
+ # all the externals inside its HEAD element.
module Externals
def self.included(base)
base.extend ClassMethods
@@ -45,7 +51,7 @@ def dependencies(type)
def my_dependencies
@my_dependencies ||= Dependencies.new
end
-
+
private
INFERABLE_TYPES = [:css, :js]

0 comments on commit 2202776

Please sign in to comment.