If you write some code that recursively searches the path of your site, you can retrieve the name and location of each file, and use that to create the new file.
In ASP you could do something like this:
For Each File in MyFolder
MyFileName = MyFile.Name
Then you can use MyFileName as the name of your new file.
I am not too fluent in PHP, but I am sure you can create the same recursive code that retrieves each and every file in your site.
Using regular expressions, or simple string parsing (e.g. in ASP / VB
you could use Instr to determine the location of, say, the starting <body> tag) you can find the content in your string that you need.
Dreamweaver cannot do what you're asking here. It can apply templates on a single page only, and perform updates on multiple pages that use your template.
The idea about Library Items and Templates is that Dreamweaver knows how to handle them after
it has created them. So Dreamweaver relies on the additional code / comment tags that it has added. Remove those comments from en external application, and you render the functionality useless. The same applies the other way around: if you haven't added Template stuff or Library Items to a page, that page is beyond control of Dreamweaver's update features.
So, to make this work, you'll need to apply the template to all those pages. From what I can see, you have three options:
2. Use a (commercial) DW extension that deals with multiple pages
3. Write your own parser that generates the pages for you.
Other than this, I don;t think there are many options.....
Everyone is unique, except for me.
While typing this post, I was listening to: I Am The Highway
(Track 8 from the album: Audioslave
) What's This?