throw exception if a file cannot be opened, fix travis-ci builds #117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
returns an opened std::ifstream or throws by calling
inja_throw
.empty string if the file couldn't be opened.
a
nlohmann::detail::parse_error
if the file couldn't be opened.include
,do not attempt to (re-)parse templates from files that were already
included. Additionally, this prevents inja from attempting to load
in-memory templates by their name from disk.
open files that do not exist.
If there is anything that I can do to get this merged, please let me know.
Edit:
I have re-enabled
--std=c++11
with the last two commits. This fixes the travis-ci builds.