TargetsHTML
This service allows the validation of a BrowserTarget html.template file and it also
takes care of generating a "default template" if the one on the target settings doesn't exist.
Constructor Summary
| Public Constructor | ||
| public |
constructor(events: Events, tempFiles: TempFiles) Class constructor. |
|
Member Summary
| Public Members | ||
| public |
A local reference for the |
|
| public |
A local reference for the |
|
Method Summary
| Public Methods | ||
| public |
getFilepath(target: Target, force: boolean, buildType: string): string Given a target, this method will validate if the target has an HTML template file and return its absolute path; if the file doesn't exists, it will generate a new one, save it on the temp directory and return its path. |
|
| public |
Validate if a target HTML template exists or not. |
|
Public Constructors
Public Members
Public Methods
public getFilepath(target: Target, force: boolean, buildType: string): string source
Given a target, this method will validate if the target has an HTML template file and return its absolute path; if the file doesn't exists, it will generate a new one, save it on the temp directory and return its path.
Params:
| Name | Type | Attribute | Description |
| target | Target | The target information. |
|
| force | boolean |
|
Optional. If this is |
| buildType | string |
|
Optional. If the HTML is for an specific type of build. This may be useful for plugins. |
