module Angumine

angumine

Finds references to models in AngularJS and attempts to keep track of ng-repeat, etc. to build a tree. This may be helpful if you are trying to determine the JSON views required.

Mines Angular Templates for model information.

Constants

VERSION

Public Class Methods

parse(file_contents) click to toggle source
# File lib/angumine.rb, line 8
def parse(file_contents)
  sax_parser = Angumine::SaxParser.new
  parser = Nokogiri::HTML::SAX::Parser.new(sax_parser)
  parser.parse(file_contents)
  sax_parser.mined_data
end