Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1419.Html text generator -- How to batch generate html files from a html template file?

User: ddumetz -- 2018-07-26          << 1418  1420 >>
Hits: 833
Type: Html text generator   
Search all Html text generator examples
Description:
How to batch generate html files from a html template file?

How to:
* put file1.txt into template.html at location <!--Replace With Text File--> to make a new file1.html
* put file2.txt into template.html at location <!--Replace With Text File--> to make a new file2.html
...
Input Sample:
=======================
file template.html:
............................
<!--Replace With Text File-->
..........
=======================
file1.txt:
<content of file1>

=======================
file2.txt:
<content of file2>
...
Output Sample:
=======================
file1.html:
............................
<content of file1>
..........


=======================
file2.html:
............................
<content of file2>
..........
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume template file is: 
d:\test\(Input)-index-template.html

1. open "Tools->Batch Runner" menu
2. drag file1.txt, file2.txt, ... to batch runner window
3. set "set output filename" to: 
4. click "fast replace":
* click "add" to add new rule
* set "search" to blank
* set "replace" to:

* click "ok"
5. click "start", done.

Screenshot 1:  Batch_Runner_Window


Screenshot 2:  Fast_Replace_Window


Similar Examples:
How to batch rename each html file to the title of the html file? (71%)
How to batch extract html title from files and link to the file? (69%)
How to batch rename html files with specified text from html title tags? (67%)
How to batch rename html files to specified text from html title tags? (67%)
How to batch rename PDF files with the date inside the file? (66%)
How to generate a csv file from a template file and a list of words? (66%)
How to batch extract specified lines from a text file? (65%)
How to batch rename files to the first date found in the files? (64%)

Check Demo of Html text generator
Keywords:
generate html files  index  html template  html text generator  blank  template  test  text generator  generator  input  index filename  index html  new text generator  batch file to generate html file  index file  txt file batch generator  batch menu generator  filename generator