I would like to do a release for 0.2.1 today since it has an important fix to support Mongrel. <br><br>I found out that I needed to change the init slightly to support running from mongrel otherwise MasterView didn't get loaded.
<br><br>Mongrel has been showing much popularity these days, so I would like to get this out asap.<br><br>That being said, there is one other thing that I would like to add to the initialization and I need some help with the naming and explanation around that.
<br><br>I added the feature to image_tag, stylesheet_link, and javascript_include so that if you don't specify an absolute in the attr_value that it will use a regular expression to find the relative path from the src attribute. Currently these are constants embedded in each of these three directives, however after talking with Ed Howland one of our users, the way he was using things it might be better if these are configurable constants. This would allow you to put your images, javascripts, and stylesheets elsewhere on your file system for designing and not be locked into public/*.
<br><br>So I am looking for naming and description for<br><br>JAVASCRIPT_SRC_EXTRACT_REGEX = /public\/javascripts\/(.*)/<br>IMAGE_SRC_EXTRACT_REGEX = /public\/images\/(.*)/<br>STYLESHEET_SRC_EXTRACT_REGEX = /public\/stylesheets\/(.*)/
<br><br>Basically the way I designed these is that if the src value finds a match with this regular expression then it takes the contents of the first group (which in these examples is the relative path) and uses that for the path to the appropriate helper. If the regex did not match, then it just uses the entire contents of src since it doesn't know what else to do.
<br><br>Hope that makes sense. Deb I can make the updates if you can just help me with the naming and description for these.<br><br>I guess this doesn't have to be put in 0.2.1 but since it was fresh in my mind I thought I would knock it out if possible.
<br><br>I have also updated the content with the diagram and put a new shorter video up.<br><br>Thanks,<br><br>Jeff<br>