AngelDoReMi / closure-templates

Automatically exported from code.google.com/p/closure-templates
Apache License 2.0
0 stars 0 forks source link

Parse the given template file #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is there any API provided by GCT to get the list of template names and the 
namespace of a soy file? If not how can it be done using Google API?

Original issue reported on code.google.com by sheetalr...@gmail.com on 21 Sep 2011 at 6:22

GoogleCodeExporter commented 8 years ago
http://closure-templates.googlecode.com/svn/trunk/javadoc-complete/com/google/te
mplate/soy/soytree/SoyFileNode.html available via 
http://closure-templates.googlecode.com/svn/trunk/javadoc-complete/com/google/te
mplate/soy/soyparse/SoyFileSetParser.html

Original comment by mikesamuel@gmail.com on 22 Sep 2011 at 7:44

GoogleCodeExporter commented 8 years ago
Thanks for the info,is there any example available for this?
That is parse the template to get only the namespace and list of template names.

Original comment by sheetalr...@gmail.com on 23 Sep 2011 at 8:44

GoogleCodeExporter commented 8 years ago
Hi,
I have tried parsing the template using the approach suggested by you,i have a 
query the method generateParseInfo of soyfileset returns a soyInfo java file 
from which we get the template information,is there any way to avoid creation 
of this file and get the data of template?

Original comment by sheetalr...@gmail.com on 23 Sep 2011 at 12:43