Repository navigation
Android code generation using Mustache templates - #26
Conversation
* Removed "target" option from command line. * Deleted JavaCodeGenerator because it is not needed anymore.
There was a problem hiding this comment.
Don't get what's package name, except it is specific to Java, right?
There was a problem hiding this comment.
Yes, it's important for Java but may also apply to other languages like Python. For Example: https://github.com/S2MBO/metaJSON/blob/feature/refactor/metajson/templates/Android/_CLASSNAME_.java.mustache#L8
|
When executing metaJSON with the following code: python metajson-runner.py -p S2M -o com/example/project/model/ --template=metajson/templates/Android/ --package=com.example.project.model -i samples/product.json it uses the default suffix "JSONObject". The files are called correspondingly but the class names don't contain "JSONObject" at the end. Calling it with suffix parameter, e.g. -s false it works and the java code looks ok. Some improvements would one more line break after each line and putting attributes and methods in the correct order (attributes first, then methods) but i can imagine that is not that easy during parsing. |
|
@ben-efiz I fixed the suffix issue and implemented your suggested improvements. Please reconsider. |
Android code generation using Mustache templates
No description provided.