如何在模板中找到未使用的变量?
旧版代码正在准备大量数据,有时在渲染的树枝模板中不使用它。
有没有办法知道在渲染过程中没有使用什么?
很高兴看到或强制渲染所有其他数据,这是没有触摸的。
PS:我的想法只是摆脱没有用过的东西,可以找到并看到它们,而没有挖掘数百万的代码
ps2:twig用作单独的作曲家软件包,也没有连接交响曲或drupal
Legacy code, is preparing a lot of data, and sometimes it is not used in rendered TWIG template.
Is there a way to know, what wasn't use during rendering process?
Will be nice to see, or force to render all other data, that was not touched.
PS: my idea is just get rid of that not used things, and will be nice to find and see them, with not digging to millions lines of code
PS2: twig is used as separate composer package, and is not connected neither Symphony or Drupal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论