Module: BreezyTemplate::DependencyTrackerMethods

Defined in:
lib/breezy_template/dependency_tracker.rb

Constant Summary collapse

INDIRECT_RENDERS =

Matches:

json.partial! partial: "comments/comment"
json.comments @post.comments, partial: "comments/comment", as: :comment
json.array! @posts, partial: "posts/post", as: :post
= render partial: "account"
/
  (?::partial\s*=>|partial:)  # partial: or :partial =>
  \s*                         # optional whitespace
  \[*                         # optional Bracket
  \s*                         # optional whitespace
  (['"])([^'"]+)\1            # quoted value
/x

Instance Method Summary collapse

Instance Method Details

#dependenciesObject



24
25
26
# File 'lib/breezy_template/dependency_tracker.rb', line 24

def dependencies
  indirect_dependencies + explicit_dependencies
end