このエントリーをはてなブックマークに追加

TemplateTextGenerator

translated by GoogleTranslate

Github (Source code)

It is a tool to create a simple text using the template.

[Launch Web-App TemplateTextGenerator]

Feature

Will correspond to the template file name corresponds to the output of multiple files.

How to use

I'll show template-example later

Data entry field and Central is the management column of data list data output column on the left and right.

(1) clipboard receiver

In other circumstances, you can paste from Edita other data by selecting here. We are expecting to create or Google Doc, in the mark-down list editor.

(2) template display column

The separated on the screen into the file name header body footer, the template data read. I also do so now also fixed.

Option (3) text entry field

Enter here the data to make the text in combination with template data. I also set here also options.

Input option

Output Options

If more than one output, and template processing in the body of each data, on header footer with further back and forth, it will be output in the file name.

Otherwise, in the body template processing each data, collectively, the upper header footer with back and forth and finallygenerated.txtIt is output together with the name.

Raw template data and (4) output column

In this case, the text was made faded pair and template. In addition, it is also possible to download the file.

Of tabLoaded TemplateThe template data of text state is displayed.(If you want to modify in the other editor, copy-paste this text)

The Tips below example of character of the template it may be found.

List data controller panel (5) on

This function is to manage the data of multiple.

Basic functions

Special function

Data list data list (5) middle

Data will be displayed in a list here.

Load the data by selecting a click.

Double-click ..

I can modify the creation date in the Modify create date of the right-click context menu.

Data list of sub-panel controller (5) under

It is a button for operation of options.

Example Templates

I suppose all the common header and footer.

Header template

<html><body>

Footer template

</body></html>

A simple example

File name template

${value}.html

Body template

${value}<br/>

Input modeThe,Single Line

Input text

hello
world

Output as multiple files

hello.html

<html><body>
hello<br/>
</body></html>

world.html

<html><body>
world<br/>
</body></html>

Output as a single file

generated.txt

<html><body>
hello<br/>
world<br/>
</body></html>

Examples of pairs

File name template

${value}.html

Body template

<h1>${title}</h1>
${value}<br/>

Input modeThe,Pair

(Basically, input mode and pair it, because it is the key and value for each row, multiple output unsuitable)

Input text

title    document
value    hello

Output as multiple files

$ {Value}. Html
The first one,Since there is no value for the key value, I will be doing

<html><body>
<h1>document</h1>
${value}<br/>
</body></html>

hello.html
The second, because there is no value for the key title, I will be doing

<html><body>
<h1>${title}</h1>
hello<br/>
</body></html>

Output as a single file

generated.txt

<html><body>
<h1>document</h1>
hello<br/>
</body></html>

The first line in the case of key

File name template

${value}.html

Body template

<h1>${title}</h1>
${value}<br/>

Input modeThe,First line is used as Key

Input text

title    value
firsttitle    firstvalue
secondtitle    secondvalue

Output as multiple files

The first line will be used, as a key, and the remaining two to be output as a file

firstvalue.html

<html><body>
<h1>firsttitle</h1>
firstvalue<br/>
</body></html>

secondvalue.html

<html><body>
<h1>secondtitle</h1>
secondvalue<br/>
</body></html>

Output as a single file

generated.txt

<html><body>
<h1>firsttitle</h1>
firstvalue<br/>
<h1>secondtitle</h1>
secondvalue<br/>
</body></html>