open-twig READMEThe open-twig extension was made for working on Symfony projects where twig template calls aren't just the name of the twig file. It read the cache file of Symfony calls of twigs and opens the right file for you, doesn't matter the name of the template have in project. It's perfect if your project uses namespaces for calling twigs, as seen in: https://symfony.com/doc/3.4/templating/namespaced_paths.html FeaturesOpens a twig reading it's location from Symfony's cache. Future versions will open the file from location if the template is not namespaced. RequirementsTo make the extension work, you must put the settings on "settings.json" in your vscode:
If your template cache file is outside your project, make a symbolic link from this file from inside the project. Then, put the location on this setting. Extension SettingsThis extension have this settings:
Known IssuesIf openTwig.templateFile is not set, null or false, the extension will not work. If template cache file haven't the correct structure (is not generated automatically by symfony), the extension may not work properly. Release Notes1.0.0Initial release of open-twig. |