Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

788.Html text generator -- How to create many different html files base on a given template?

User: editor -- 2011-05-24          << 787  789 >>
Hits: 373
Type: Html text generator   
Search all Html text generator examples
Description:
How to create many html files with different title and content base on a given template?
Input Sample:
=======list.txt=====
Tommy
Jerry
Frank
...

===== Template File: someone.html ======
<title>someone's homepage</title>
<body>
userid of someone:
address of someone:
title of someone:
</body>
Output Sample:
==== file1: Tommy.html ====
<title>Tommy's homepage</title>
<body>
userid of Tommy:
address of Tommy:
title of Tommy:
</body>

==== file2: Jerry.html ====
<title>Jerry's homepage</title>
<body>
userid of Jerry:
address of Jerry:
title of Jerry:
</body>

...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open the file list.txt that contains names
2. ctrl-h open 'replace' dialogue:
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

3. click "Replace", the combined html file is generated
4. click "File-> SaveAs->Split by Paragraph" menu
* set "Para start" to "other", and set the following entry to:
* set "Para end" to "None"
5. click "Next", and input a filename in target folder, and click "Save", the html will be splitted to multiple html files with desired names.

Screenshot 1:  Replace_Window


Similar Examples:
How to extract/parse title from many html files and join together? (59%)
How to generate 12 columns EMA with different periods based on "close" value? (55%)
How to convert many html files to text files all at once? (55%)
How to calculate the summaries of different EMA based on close values in stock? (54%)
How to change the many urls in html to ids in sequence? (53%)
How to rename many files with the last modified date of the file? (53%)
How to extract titles from many html files into a txt file? (52%)
How to run a program on many html files to extract useful text? (52%)

Check Demo of Html text generator
Keywords:
homepage  given  combine  split by paragraph  html text generator  create  user  paragraph  many html files  names  replace html content by click  create multiple text files  html multiple text generator  create multiple files  multiple file create  filename generator  html title replace multiple  text filename generator