feat: Add DictionaryLoader to load templates from dictionary

Closes #97
This commit is contained in:
Kyle Fuller
2017-09-07 18:40:21 +01:00
parent 7b9817ed50
commit 000e9a7f1a
4 changed files with 62 additions and 0 deletions

View File

@@ -73,6 +73,16 @@ on the file system.
FileSystemLoader(bundle: [Bundle.main])
DictionaryLoader
~~~~~~~~~~~~~~~~
Loads templates from a dictionary.
.. code-block:: swift
DictionaryLoader(templates: ["index.html": "Hello World"])
Custom Loaders
~~~~~~~~~~~~~~