Posted by Beauregard T. Shagnasty on 08/10/07 04:15
dorayme wrote:
> "Beauregard T. Shagnasty" wrote:
>> Matt White wrote:
>>> I am creating a page with 2 <div>'s - one is a menu and one holds
>>> the page content. The menu is the same on every page. What is the
>>> best way to get the HTML for the menu on every page without putting
>>> the full source on every page? I'd rather have a separate menu.html
>>> file that gets loaded into the menu <div> when each page loads.
>>> Thanks.
>>
>> http://allmyfaqs.net/faq.pl?Include_one_file_in_another
>
> I sometimes wonder what other folks do in regard to the includes, do
> they put in all the enclosing element markup within the include or
> leave the container explicit in the html file to remind the author
> how the include goes. I tend to go the greedy route and put all in
> the include. This is to show high wire courage in the face of a
> creeping dementia.
I place everything in the include file that goes with that object. Can't
see any reason to have to remember to add containers or whatever to the
main file. Just add the 'include' line.
--
-bts
-Motorcycles defy gravity; cars just suck
Navigation:
[Reply to this message]
|