You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix non-exemplar template parity with cookiecutter output
Restructure template/README.md.jinja so the heading, badges,
description, license, and usage sections are shared between
exemplar and non-exemplar output, matching what cookiecutter
produced. Previously the non-exemplar branch rendered only "TODO"
with no heading or badges.
Guard exemplar-specific paths in .gitattributes.jinja (template/,
copier/) and .pre-commit-config.yaml.jinja exclude pattern so
generated non-exemplar projects don't reference directories they
don't contain.
Fix extra blank line in CONTRIBUTING.md.jinja rendering and remove
the include-path NOTE that main deliberately removed.
[](https://godbolt.org/z/4qEPK87va)
168
+
{%ifgenerating_exemplar%}[](https://godbolt.org/z/4qEPK87va)
169
+
{%endif%}
164
170
<!-- markdownlint-restore -->
165
171
172
+
{%ifgenerating_exemplar%}
166
173
`beman.exemplar` is a minimal C++ library conforming to [The Beman Standard](https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md).
167
174
This can be used as a template for those intending to write Beman libraries.
168
175
It may also find use as a minimal and modern C++ project structure.
176
+
{%else%}
177
+
`beman.{{project_name}}` is (... TODO: description).
178
+
{%endif%}
169
179
170
-
**Implements**: `std::identity` proposed in [Standard Library Concepts (P0898R3)](https://wg21.link/P0898R3).
180
+
{%ifgenerating_exemplar%}
181
+
**Implements**: `std::identity` proposed in [Standard Library Concepts ({{paper}})](https://wg21.link/{{paper}}).
182
+
{%else%}
183
+
**Implements**: `std::todo` proposed in [TODO ({{paper}})](https://wg21.link/{{paper}}).
184
+
{%endif%}
171
185
172
186
**Status**: [Under development and not yet ready for production use.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#under-development-and-not-yet-ready-for-production-use)
173
187
174
188
## License
175
189
176
-
`beman.exemplar` is licensed under the Apache License v2.0 with LLVM Exceptions.
190
+
`beman.{{project_name}}` is licensed under the Apache License v2.0 with LLVM Exceptions.
177
191
178
192
## Usage
179
193
194
+
{%ifgenerating_exemplar%}
180
195
`std::identity` is a function object type whose `operator()` returns its argument unchanged.
181
196
`std::identity` serves as the default projection in constrained algorithms.
182
197
Its direct usage is usually not needed.
@@ -364,9 +379,3 @@ include an appropriate `beman.{{project_name}}` header from your source code.
0 commit comments