sethmcl/venus — pull request #46 by ryanone (2012-09-24 20:11:22+00:00)
Title: Added support for @venus-fixture annotation by creating a Dust partial from its contents.

Added support for @venus-fixture annotation by doing the following:

- Taking the value of the annotation (whether its a file or HTML string) and creating a Dust partial. This partial will get embedded before the closing

tag. If annotation exists, Venus defaults to an empty string.

- Modified executor.js - Changed the handler serving the sandbox that modifies the sandbox template by adding a reference (uses the test ID) to the contents of the @venus-fixture annotation.

- I added a a stringUtil JS file that contains a helper method to determine if a string is HTML or not. I can use feedback here to determine where the proper place to put this should be.

- I modified the regex in commentsParser.js that parses out the value of an annotation. Before it wouldn't parse properly if the annotation value had spaces. That's fixed now.