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

Support token replacements in html templates for custom content definitions when building policies #62

Open
rhendrie opened this issue Jul 28, 2021 · 2 comments

Comments

@rhendrie
Copy link

Would be useful to support environment substitution in HTML templates for custom content definitions. If, for example, I was to create a sub-folder called templates in the same folder as the policy xml files and run the Policy Build tool for an environment it could apply the environment transformations to those files also to replace things like absolute references to resources in the storage account hosting to the content (e.g. images, styles etc. )

@trittimo
Copy link
Contributor

If you want, you can adapt the included powershell script here on line 32 to include all files instead of just XML and use that as a build tool. Given that the plugin can't currently upload any assets other than B2C policies, using that powershell script would probably be more desirable as you can automate that in a build pipeline or similar.

@rendermouse
Copy link

I agree it would be nice to support html templates in the project, and update settings vars within them, such as link URLs to dev/prod ForgotPassword flow from the Login page templates, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants