Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: TemplateService to replace tokens in a string #3373

Closed
3 tasks done
iJungleboy opened this issue May 6, 2024 · 0 comments
Closed
3 tasks done

Feat: TemplateService to replace tokens in a string #3373

iJungleboy opened this issue May 6, 2024 · 0 comments
Assignees

Comments

@iJungleboy
Copy link
Contributor

iJungleboy commented May 6, 2024

I'm submitting a

[x] feature request

...about

[x] Razor templating

Current Behavior / Expected Behavior

There are various cases where a string should be able to contain placeholders, which would then be replaced by things such as the date-time or values from an entity.

Internally 2sxc has this functionality, but it's not available on the public API, so we want to make this possible.

Steps ca.

  • Create a service, probably an ITemplateService
  • Create a Parse("string") mechanism or something
  • Create various features to add/override certain sources with custom sources, eg. from an Entity

Your environment

  • 2sxc version(s): 17.07
@iJungleboy iJungleboy self-assigned this May 6, 2024
iJungleboy added a commit that referenced this issue May 6, 2024
iJungleboy added a commit to 2sxc-dev/app-test-features that referenced this issue May 6, 2024
iJungleboy added a commit that referenced this issue May 7, 2024
iJungleboy added a commit to 2sic/eav-server that referenced this issue May 10, 2024
iJungleboy added a commit that referenced this issue May 10, 2024
iJungleboy added a commit to 2sic/2sxc-docs that referenced this issue May 10, 2024
iJungleboy added a commit that referenced this issue May 10, 2024
iJungleboy added a commit to 2sic/eav-server that referenced this issue May 14, 2024
iJungleboy added a commit that referenced this issue May 14, 2024
iJungleboy added a commit to 2sic/eav-server that referenced this issue May 21, 2024
iJungleboy added a commit that referenced this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: v17.08
Development

No branches or pull requests

1 participant