mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #95] [MERGED] Namespaced template functions #42
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/95
Author: @gschier
Created: 9/18/2024
Status: ✅ Merged
Merged: 9/18/2024
Merged by: @gschier
Base:
master← Head:namespaced-autocomplete📝 Commits (3)
3f516efSupport namespaced template functions in parser and autocomplete9f5f53aRemove commented code92d11d4Remove duplicate var📊 Changes
5 files changed (+98 additions, -26 deletions)
View changed files
📝
src-tauri/yaak_templates/src/parser.rs(+44 -1)📝
src-web/components/core/Editor/Editor.css(+5 -4)📝
src-web/components/core/Editor/twig/completion.ts(+39 -16)📝
src-web/components/core/Editor/twig/templateTags.ts(+9 -5)📝
src-web/hooks/useRenderTemplate.ts(+1 -0)📄 Description
This PR adds support for template tags with multi-level APIs like Faker (eg.
faker.animal.dog().https://github.com/user-attachments/assets/38eb9c79-1d84-4ed2-ad82-68eacab2c63d
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.