Skip to content

Commit

Permalink
fix #72
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jul 11, 2024
1 parent b8d8fe2 commit aae0f34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.12.9] - Unreleased
### Fixed
- Includes when the inital url is not specified fails [#72].

## [0.12.8] - 2024-07-04
### Added
- Allow the trimming syntax in comments [#70].
Expand Down Expand Up @@ -240,7 +244,9 @@ First version
[#64]: https://github.com/oscarotero/vento/issues/64
[#65]: https://github.com/oscarotero/vento/issues/65
[#70]: https://github.com/oscarotero/vento/issues/70
[#72]: https://github.com/oscarotero/vento/issues/72

[0.12.9]: https://github.com/oscarotero/vento/compare/v0.12.8...HEAD
[0.12.8]: https://github.com/oscarotero/vento/compare/v0.12.7...v0.12.8
[0.12.7]: https://github.com/oscarotero/vento/compare/v0.12.6...v0.12.7
[0.12.6]: https://github.com/oscarotero/vento/compare/v0.12.5...v0.12.6
Expand Down
2 changes: 1 addition & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class Environment {
}

async load(file: string, from?: string): Promise<Template> {
const path = from ? this.options.loader.resolve(from, file) : file;
const path = this.options.loader.resolve(from || ".", file);

if (!this.cache.has(path)) {
// Remove query and hash params from path before loading
Expand Down

0 comments on commit aae0f34

Please sign in to comment.