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: 2298
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 replace different lines with different rule? (58%)
How to replace content of many files with text from a template file? (58%)
How to rename different file name suffix to the same? (55%)
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 add in different sentences after the different lines? (54%)
How to calculate the summaries of different EMA based on close values in stock? (54%)

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