A utility for dynamically creating static pages ... (I do not ask about it because I want it, rather because I need ...)

Does anyone know a utility for **** ahm, typing together static pages.

For example:
Let's say I wrote the page header and footer, and I just wanted to change the content without **** sigh ****, dynamically generating the page content. (The IE page is dynamically generated, but the end result is just a static page that will be dumped to the FTP directory.)

I usually do not support this, something like something like Tiles or serveride includes on a web server, but unfortunately my employer __does ...__ they use static pages and I can not do anything to change my mind . (C ++ Programmers)

The closest thing to what I am describing here that I found will be a utility called cook , which was used to build tiddlywiki .

That's right, therefore a utility that can accept a directory:

  • Parts of a static page
    • Header.htm
    • Footer.htm
  • Parts that are changing
    • about.htm
    • info.htm
    • products.htm
    • etc.htm

And change it to:

  • Website creation
    • about.htm (with header and footer, as well as the contents of / Parts that change /about.htm) between
    • info.htm (same bit ...)
    • products.htm( ...)
    • .. ( ...)
0
2
+1

, , - , N HTML-, , , -. ?

, Dreamweaver ​​, - , :

load config file that you use for build parameters
open stream to output file
for each file in source folder 
    load to stream
    write to output stream
close output stream
post file to remote site

, . , , , .

EDIT: - "" (% HEADER%,% FOOTER% ..), , .

0

Source: https://habr.com/ru/post/1702846/


All Articles