scriptsharp icon indicating copy to clipboard operation
scriptsharp copied to clipboard

Script.Literal causes code gen failure

Open DVaughan opened this issue 13 years ago • 1 comments

When using a Script.Literal, code generation reports: Unable to resolve or open included file '%code%' when there is a curly bracket that is not part of a variable placeholder.

DVaughan avatar Jul 25 '12 14:07 DVaughan

Your example in the other issue was actually useful... for anyone else who comes across this.

For the benefit of others, the string passed in into Script.Literal must be a valid format string passed in into String.Format... so if you need a "{" within the string, it needs to be escaped as "{{".

nikhilk avatar Jul 25 '12 15:07 nikhilk