-
Notifications
You must be signed in to change notification settings - Fork 62
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
Variables in script tags #1
Comments
Hi, This is a known limitation (see the Readme). Feel free to hit us with a patch :) |
Don't you just hate it when people don't read the readme... |
@tsvetomir: How would you achive that? |
I've modified the Parse function in the WebFormsParser class to process the script block after startTagOpeningBracketRegex statement. This allows the parse to process any tags within the block and output the other sections of the script as IWebFormsTextNode's. Below the modified method is a unit test which I added to the WebFormsParserTests class to validate this function works correctly. I've used this to upgrade my views, but haven't had chance to run it through a complex solution yet.
|
@SteveDavis, thanks, I'll give it a try! |
…se aspx tags within javascript
I think that moving it to the end causes it to never be hit. However, I think this is the correct behavior. Using the master branch and commenting out the scriptRegex if statement, it causes a script tag to be treated as a regular start tag. I haven't noticed any issues so far. What caused this to be added as a "known limitation"? |
I listed this as a limitation originally as I couldn't quite come up with a reliable way to detect the variables in any script. Do you still have the issue with #7 merged? |
First off, thanks for the great tool!
Found a bug though:
Assume this code:
The converter doesn't convert it...
The text was updated successfully, but these errors were encountered: