This documentation is for an old version of fiftyfive-wicket (2.0.9).


fiftyfive.wicket.js.locator
Class SprocketParser

java.lang.Object
  extended by fiftyfive.wicket.js.locator.SprocketParser
Direct Known Subclasses:
SprocketDependencyCollector

public class SprocketParser
extends Object

Helper class that parses JavaScript files for special Sprockets comments like these:

 //= require <library_name>
 //= require "file_name"

Since:
2.0

Constructor Summary
SprocketParser()
           
 
Method Summary
 List<Sprocket> parseSprockets(BufferedReader javascript)
          Parses the given JavaScript file and returns a list of sprocket dependencies that it finds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SprocketParser

public SprocketParser()
Method Detail

parseSprockets

public List<Sprocket> parseSprockets(BufferedReader javascript)
                              throws IOException
Parses the given JavaScript file and returns a list of sprocket dependencies that it finds. Does not close the Reader.

Throws:
IOException


Copyright © 2011 55 Minutes. All Rights Reserved.