<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>I think that's a good default, tho let's think through 
the wrinkles a bit more just&nbsp;to make sure we aren't missing something about 
being able to reliably do the "right" thing.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>I think it's ok to assume that .html in the app/view 
directory is intended by be used w/in the rendering framework.&nbsp; If you 
don't want any processing, you should have put that file in your 
app/public.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>But let's allow for exceptions by an "ignore me 
entirely" attribute: e.g.,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>&nbsp;&nbsp; &lt;body 
mv:ignore=""&gt;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>&nbsp; ....</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>&nbsp;&nbsp; &lt;/body&gt;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>means "buzz off and leave me alone, I don't want no 
processing on me".</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>But then, yes, agree with your proposal: if a .html 
file in app/views which is truly &lt;html&gt; contains no output generation 
directives (no mv:generate or mv:gen_partial), then mv assumes default as if you 
had written:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>&nbsp;&nbsp; &lt;body mv:generate="{template_path}" 
mv:omit_tag=""&gt;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>&nbsp; ....</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>&nbsp;&nbsp; 
&lt;/body&gt;</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT><FONT face=Arial color=#0000ff 
size=2><SPAN class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>That's nice, gives you an easy way to pour chunks of 
basic content into your site to&nbsp;leverage&nbsp;a page&nbsp;framing layout 
without any extra work.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>BTW, if we don't already, suggest we interpret both 
mv:generate="" and mv:generate="*" as shorthand for 
mv:generate={template_path}".&nbsp; (can't remember if we're doing that, need to 
recheck the subst. code)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=630533016-18072006>~ Deb</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jeff Barczewski 
[mailto:jeff.barczewski@gmail.com] <BR><B>Sent:</B> Monday, July 17, 2006 12:39 
PM<BR><B>To:</B> masterview-devel@rubyforge.org; 
djlewis@acm.org<BR><B>Subject:</B> Should MV assume a generate destination if 
none is provided in the template?<BR></FONT><BR></DIV>
<DIV></DIV>I was thinking that for beginning users that the mv:generate thing is 
a brand new concept from all of the other templating systems so if they write 
some templates and don't include those directives (mv:generate or 
mv:gen_partial) they won't get any output and will be thinking it is broken. 
<BR><BR>So much like rails assumes that if you don't specify a render call in 
your controller that it should use the default render view, maybe MV should 
assume that if you don't specify any mv:generate or mv:gen_partial calls that we 
should assume a mv:generate="*". And if their root is &lt;html&gt; then we would 
assume that they want the content of the body for this output so we would do 
essentially put this in the body tag&nbsp; &lt;body mv:generate="*" 
mv:omit_tag=""&gt;, since typically this will be wrapped with a layout. If they 
don't lead with &lt;html&gt; then we'd put the mv:generate="*" at the root and 
leave out the omit_tag.. <BR><BR>This would make it easier for people that are 
starting out, to get something working especially if they have tried other 
similar template libs.<BR><BR>The only issue I see with this is that if people 
have other non mv html files in their tree (not sure why they would though since 
they typically would be in public) then those would potentially generate rhtml 
as well. We could make the directive configurable as to whether it is enabled, 
but maybe that is overkill. If we make the assumption that either they won't 
have non mv html files in their view dirs or that it doesnt matter if some extra 
rhtml files are created then we it should work fine. <BR><BR>Ideas or 
thoughts?<BR><BR><BR></BODY></HTML>