On 5/19/07, <b class="gmail_sendername">James Britt</b> <<a href="mailto:james@neurogami.com">james@neurogami.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jeff, thanks for the help.<br><br><br>I followed your examples, but now get very peculiar HTML for my page<br>preview after importing the layout and regenerating the pages.<br><br>Here is an example.<br><br>The layout (example1.html
):<br><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br> "<a href="http://localhost/TR/xhtml1/DTD/xhtml1-strict.dtd">http://localhost/TR/xhtml1/DTD/xhtml1-strict.dtd</a>"><br><html xmlns="
<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" lang="en"<br> xml:lang="en" mv:generate='layouts/example1.rhtml'><br> <head><title>Foo</title> </head>
<br> <body><br> <div id="doc2"><br> <div class="yui-gc"><br> <div class="yui-u first" id="main"><br> <div class='main' mv:content="yield">
<br> <h4>Welcome to my layout</h4><br> </div><br> </div><br> <div class="yui-u" id="sidebar" mv:content="yield :sidebar"><br> <p>This should be replaced by the actual sidebar</p>
<br> </div><br> </div><br> </div><br> </body><br></html><br><br><br><br>Here is the initial page1.html<br><br><html mv:import="layouts/example1.rhtml"><br> <span mv:generate="example/page1.rhtml">
<br> <h2>The Page 1 Subheader!</h2><br> <div mv:block="content_for :sidebar do"><br> <h3>Page 1 sidebar</h3><br> </div><br> </span><br></html><br><br><br>
If I now tell MasterView to update the templates, the rhtml generation<br>is fine, but the new, auto-generated HTML for page1.html ends up with<br>two <html> sections (each one a copy of layouts/example.rhtml), with the
<br>original page1 html in the middle:<br><br><br>[All of example1.html]<br>[page1.html]<br>[All of example1.html]<br><br>The odd thing is, this resulting masterview template is not valid XML,<br>as it has mulitple root nodes, but it does not raise any errors.
<br><br>(I've attached my HTML layout and page view as a tar file.)<br><br>Thanks,</blockquote><div><br><br><br></div></div>Hmm. I'll take your examples and test to see what is going on. I don't see anything obvious that is wrong. I should be able to get you a response tomorrow, getting ready to board a plane in a short while.
<br><br>Jeff<br>