Castellano (Spanish)
Appearance
Castellano (Spanish)
Appearance
EXTENSION
Template.Item
extension Template.Item
string(path:contents:)
public static func string(path: String, contents: String) -> Template.Item
Template.Item
that is .string
Name | Description |
---|---|
path | Path where to generate file |
contents | String Contents |
file(path:templatePath:)
public static func file(path: String, templatePath: Path) -> Template.Item
Template.Item
that is .file
Name | Description |
---|---|
path | Path where to generate file |
templatePath | Path of file where the template is defined |
directory(path:sourcePath:)
public static func directory(path: String, sourcePath: Path) -> Template.Item
Template.Item
that is .directory
Name | Description |
---|---|
path | Path where will be copied the folder |
sourcePath | Path of folder which will be copied |