Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

Templates

NOTE: Maybe this should be an extra module? Contains basic templating functions. Used in other helpers.

Functions and values

Function or valueDescription
Templates.load(seq)
Signature: seq:seq<string> -> seq<string * seq<string>>

Loads all templates (lazy - line by line!)

Templates.replaceInFiles(...)
Signature: replacements:seq<string * string> -> files:seq<string> -> unit

Replaces the templates with the given replacements

Templates.replaceKeywords(replacements)
Signature: replacements:seq<string * string> -> seq<'?19475 * '?19476> -> seq<'?19475 * seq<string>>
Type parameters: '?19475, '?19476

Replaces a bunch of the keywords in all files (lazy - line by line!)

Templates.saveFiles
Signature: seq<string * seq<string>> -> unit

Saves all files (lazy - file by file!)