Skip to content

Conversation

@Kartikey-Garg
Copy link
Contributor

Changed code at Line 95 as the given code is not working while previewing POML.

Previous:

New:
Hello, world!

Changed code at Line 95 as the given code is not working while previewing POML.

Previous:
<let name="greeting" value="Hello, world!" />
New:
<let name="greeting">Hello, world!</let>
@ultmaster
Copy link
Contributor

Oh really? I'm a little surprised. Let me test it later.

@ultmaster
Copy link
Contributor

I think the correct version should be <let name="greeting" value="'Hello, world!'" />, because the value must be an evaluatable Javascript expression. Would you clarify this in the docs and add some tests to ensure the behavior.

Or you can allow me to edit this pull request if you don't have time to do that.

@ultmaster ultmaster changed the title Update standalone.md Clarify value must be a valid JS expression in let Aug 18, 2025
@Kartikey-Garg
Copy link
Contributor Author

Thanks for the clarification!
I might not be able to add tests — feel free to edit this PR directly.

@ultmaster
Copy link
Contributor

@Kartikey-Garg please address the CLA.

@Kartikey-Garg
Copy link
Contributor Author

@microsoft-github-policy-service agree

@ultmaster ultmaster merged commit 5c95347 into microsoft:main Aug 19, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants