File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ To use them you can pass in a strategy to the normalize_hrefs call.
69
69
Using templates
70
70
'''''''''''''''
71
71
72
- You can utilze template strings to determine the file paths of HREFs set on Catalogs,
72
+ You can utilize template strings to determine the file paths of HREFs set on Catalogs,
73
73
Collection or Items. These templates use python format strings, which can name
74
74
the property or attribute of the item you want to use for replacing the template
75
75
variable. For example:
@@ -84,7 +84,9 @@ variable. For example:
84
84
85
85
The above code will save items in subfolders based on the collection ID, year and month
86
86
of it's datetime (or start_datetime if a date range is defined and no datetime is
87
- defined).
87
+ defined). Note that the forward slash (``/ ``) should be used as path separator in the
88
+ template string regardless of the system path separator (thus both in POSIX-compliant
89
+ and Windows environments).
88
90
89
91
You can use dot notation to specify attributes of objects or keys in dictionaries for
90
92
template variables. PySTAC will look at the object, it's ``properties `` and its
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ class LayoutTemplate:
54
54
| ``collection`` | The collection ID of an Item's collection. |
55
55
+--------------------+--------------------------------------------------------+
56
56
57
+ The forward slash (``/``) should be used as path separator in the template
58
+ string regardless of the system path separator (thus both in POSIX-compliant
59
+ and Windows environments).
60
+
57
61
Examples::
58
62
59
63
# Uses the year, month and day of the item
You can’t perform that action at this time.
0 commit comments