Up: Component summary Component

SimpleWebPage

Creates a simple web page, for publishing a list of files.

The input folder may contain folders, and files. A simple index.html will be generated, with a link for each file/folder. Output contains a copy of the input files.

Version 1.3
Bundle tools
Categories HTML
Authors Ville Rantanen (ville.rantanen@helsinki.fi)
Issue tracker View/Report issues
Requires Python
Source files component.xml style.css template.html SWP.py
Usage Example with default values

Inputs

Name Type Mandatory Description
in BinaryFolder Optional Folder of files / folders to publish.
inArray Array<BinaryFile> Optional Array of files to publish.
content TextFile Optional Snippet of HTML code or plain text
style TextFile Optional Snippet of CSS code replacing the default stylesheet.
annotation CSV Optional A CSV with 2 columns, first that matches to file/folder name, and second describing the item.
tableArray Array<BinaryFolder> Optional Array of Folders with files or HTML snippets to present at table. Array keys are the table header names. See tableArrayExpand parameter. The table element has ID tableArray. The folders have to have the same number of files, and they are sorted with "human" sorting.

Outputs

Name Type Description
out HTML A Folder with index.html and input files with links to them.

Parameters

Name Type Default Description
contentString string "" Snippet of HTML code or plain text.
contentStyle string "" Snippet of CSS code appending the input style.
footer string "Generated with Anduril." Snippet of HTML code or plain text for footer row.
index string "" Default index file in folders. e.g. index.html
size int 256 Pixel size for thumbnails.
tableArrayExpand string "" Comma separated list of column header names to be read and inserted on the page. If a name is not mentioned, the file is linked (default behavior).
thumbnails boolean false Create thumbnails for common graphics files.
title string "" Title for the page.

Test cases

Test case Parameters IN
in
IN
inArray
IN
content
IN
style
IN
annotation
IN
tableArray
OUT
out
case1 properties in (missing) (missing) style (missing) (missing) out

title=Test page,
contentString=Example listing of files

case2_annotation properties in (missing) (missing) style annotation (missing) out

title=Test page,
contentString=Example listing of files,
index=index.html

case3_images properties in (missing) (missing) style annotation (missing) out

title=Test page,
contentString=Example listing of files,
index=index.html,
thumbnails=true

Test network

Display TestNetwork
Generated 2018-12-11 07:42:07 by Anduril 2.0.0