Tags: gobuffalo/buffalo
Tags
Inject file metadata to render (#2407) * Avoid memory allocation when calling Render * feat(render): add configurable template metadata injection - Add TemplateMetadataKeys and TemplateBaseDir fields to render Options - Implement addTemplateMetadata() method to inject file metadata into template data - Add extsAndBase() helper to parse file extensions and base names - Modify resolve() methods to return fs.FileInfo for metadata extraction - Support customizable metadata keys with fallback to Buffalo defaults - Include comprehensive test coverage for extsAndBase() functionality Templates can now access file path, base name, extension, and modification time while maintaining backward compatibility with existing configurations. * Code format --------- Co-authored-by: Antonio Pagano <[email protected]>
Bump github.com/gobuffalo/pop/v6 from 6.0.1 to 6.0.2 Bumps [github.com/gobuffalo/pop/v6](https://github.com/gobuffalo/pop) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/gobuffalo/pop/releases) - [Changelog](https://github.com/gobuffalo/pop/blob/master/.goreleaser.yml) - [Commits](gobuffalo/pop@v6.0.1...v6.0.2) --- updated-dependencies: - dependency-name: github.com/gobuffalo/pop/v6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
PreviousNext