You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases it is useful to access the literal text that is about to be output by transformer, rather than accessing the AST.
This could of course be done in post-processing step, but integrating it all into transformer is nice for useability.
Some use cases:
Apply code formatting (e.g. Black)
Add any code that is separate from the actual requests (e.g. event handler registration this could be done using regular hooks, but it is complex) (solved this case using OpaqueBlock)
I can probably implement this myself, as just another plugin hook, called with the complete text just before output. If it sounds good to you @thilp
The text was updated successfully, but these errors were encountered:
In some cases it is useful to access the literal text that is about to be output by transformer, rather than accessing the AST.
This could of course be done in post-processing step, but integrating it all into transformer is nice for useability.
Some use cases:
Add any code that is separate from the actual requests (e.g. event handler registration this could be done using regular hooks, but it is complex)(solved this case using OpaqueBlock)I can probably implement this myself, as just another plugin hook, called with the complete text just before output. If it sounds good to you @thilp
The text was updated successfully, but these errors were encountered: