mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-07 12:01:16 +00:00
doc, fix: invalid liquid '{{...}}' tags
jekyll/liquid got hung up on `{{"Daniel", 26}, {"Jesse", 24}}`. The reason is that `{{...}}` are used as variables that are replaced by there values. In this case we have a YAML object that looks the same. This issue can be fixed by surrounding the block into `{% raw %}...{% endraw %}` tags.
This commit is contained in:

committed by
Jesse Beder

parent
06c3d1db51
commit
8fbf344aee
@@ -154,6 +154,7 @@ produces
|
|||||||
# STL Containers, and Other Overloads #
|
# STL Containers, and Other Overloads #
|
||||||
We overload `operator <<` for `std::vector`, `std::list`, and `std::map`, so you can write stuff like:
|
We overload `operator <<` for `std::vector`, `std::list`, and `std::map`, so you can write stuff like:
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
```cpp
|
```cpp
|
||||||
std::vector <int> squares = {1, 4, 9, 16};
|
std::vector <int> squares = {1, 4, 9, 16};
|
||||||
|
|
||||||
@@ -165,6 +166,7 @@ out << YAML::Flow << squares;
|
|||||||
out << ages;
|
out << ages;
|
||||||
out << YAML::EndSeq;
|
out << YAML::EndSeq;
|
||||||
```
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
produces
|
produces
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user