Here is how I understand Mason (which may be wrong; more experience
people, jump on in):

You shouldn't need all those style sheets, unless you really want them.
One sheet can be used by all your "chunks" because the CSS stuff is used
after Mason has assembled the HTML and delievered it to the client.

So, my autohandlers tend to look like this:

=================
<& header.html &>
<& navigation.html &>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
  <!-- Main Content -->
  <td width="520" valign="top">
% $m->call_next;
  </td>
        <td width="25"><img src="/images/spacer.gif" width="25"
height="1"></td>
  <!-- Side Bar -->
  <td width="155" valign="top">
<& side_bar.html &>
  </td>
</tr>
</table>
<& footer.html &>
=================

My header contains my opening HTML tags, META tags, stylesheet link,
title, etc. Then, I have a navigation "chunk" that contains only a table
with some images with links.

I start a content table that will be reused on all the pages and do the
call_next method.

Then, there is a side_bar page with just a table and some banners.
Finally, the footer contains copyright info and my closing HTML tags.

Each page of content then created by chaining index files from
subfolders with partial HTML in them with the autohandler and the other
components.

Now, when I edit these components in Dreamweaver individually, I can't
see the styles, so I temporaily link to the stylesheet for editing and
then remove the link later.

Does that help at all?

Jim Babcock wrote:
> 
> Hopefully I'm not annoying anyone yet...
> 
> I took a plain HTML page layout that I built in logical chunks and postioned 
> using CSS position:absolute. It basically had a header across the top with a 
> logo, title and search field in the l, c and r postions; a menu that went 
> 100% wide below it; empty space for content; then a footer 80% down from the 
> top.
> 
> I added mason to the server and broke the page into header.html, menu.html, 
> footer.html and called them all from autohandler. Now things are all mushed 
> together. the fonts and sizes and centers are right, so I know I'm hitting 
> the css sheet correctly...
> 
> The autohandler is below:
> 
> Jimbus
> 
> <html>
> <head>
> <link rel="stylesheet" type="text/css" href="/resources/css/index.css" />
> <link rel="stylesheet" type="text/css" href="/resources/css/menu.css" />
> <link rel="stylesheet" type="text/css" href="/resources/css/header.css" />
> <link rel="stylesheet" type="text/css" href="/resources/css/footer.css" />
> 
> <script type="text/javascript" src="/resources/js/menu.js"></script>
> 
> <title>NEOps: </title>
> <title>NEOps: <& SELF:title &></title>
> </head>
> 
> <body>
> <& header.html, %ARGS &>
> <& menu.html, %ARGS &>
> 
> % $m->call_next;
> 
> <& footer.html &>
> 
> </body>
> </html>
> 
> <%method title> Network Engineering and Operations </%method>
> 
> --
> ___________________________________________________
> Play 100s of games for FREE! http://games.mail.com/
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users

-- 
Doug Dawson
Application Developer
Physicians Mutual Insurance Company
(402) 930-2432

UNIX is user friendly, it's just picky about who its friends are.



____________________________________________________________
This message and any attachments are confidential, may contain privileged 
information, and are intended solely for the recipient named above.  If you are 
not the intended recipient, or a person responsible for delivery to the named 
recipient, you are notified that any review, distribution, dissemination or 
copying is prohibited.  If you have received this message in error, you should 
notify the sender by return email and delete the message from your computer 
system.
begin:vcard 
n:Dawson;Doug
tel;work:402.930.2432
x-mozilla-html:FALSE
url:http://www.physiciansmutual.com
org:;ETG
adr:;;2600 Dodge St.;Omaha;NE;68131;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Programmer
fn:Doug Dawson
end:vcard

Reply via email to