Open TheNouillet opened 5 years ago
I would be happy to implement this enhancement. Do you know where I could look for a good example on how this should be done?
parse ide-twig.json for custom template namespaces
...
Do you know where I could look for a good example
I believe https://github.com/Haehnchen/idea-php-symfony2-plugin/blob/ee4909e23d91f9d34b37ea17c5d9fdc3942343c8/src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/path/JsonFileIndexTwigNamespaces.java might be a good start.
It parses the ide-twig.json
and contains a test fixture.
Goal : go from a configuration file or PHP file to a Twig template Note : parse ide-twig.json for custom template namespaces