Skip to content

How to make the Title of a generated Attribution file a variable #332

@DennisClark

Description

@DennisClark

It is very clear how attrib uses a template file to determine the variable values for each of the detail rows. But is there a good way to specify variables for the header text of the attribution file to be created? For example, I have an attribution template that starts like this:

<!doctype html>
<html>
    <head>
	<style type="text/css">
		div.additional-license-text-list {display:block}
		body {font-family: Helvetica, Arial, sans-serif;}
		pre {white-space: pre-wrap;}
		li {font-weight: bold;}
		#header {font-family: Helvetica; font-style:italic}
	</style>
        <title>Product 101 - Open Source Software Information</title>
    </head>

    <body>
        <h1>Product 101 - Open Source Software Information</h1>
	<pre id="header">
Some standard text...

{{The template details... }} 

I would like to be able to substitute something for "Product 101 - Open Source Software Information" so that the Title itself is a runtime variable. Is there a recommended way to do that?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions