h34tnet / temporize Goto Github PK
View Code? Open in Web Editor NEWA template engine / preprocessor that converts templates into java code
License: MIT License
A template engine / preprocessor that converts templates into java code
License: MIT License
Umlauts in the source code are \u**-escaped by the java.commons.text StringEscape utils.
The template "äöü" creates the following write code:
w.write("\u00C3\u00A4\u00C3\u00B6\u00C3\u00BC");
This then gets written as "äöü"
Would remove a file and a an extra import. Has several downsides though, as min 1.8 language level, etc. and have one file (the interface) do several independent things.
If a template gets removed or renamed, the leftover class stays and has to be manually removed.
Proposed resolution:
Note: it's not necessary to delete all template files and i don't want to just delete all java files in the output directory for security reasons (misconfiguration might make it delete more than necessary).
Seems like i omitted this in the current version, even though the information should be available.
Currently, all files are written immediately after being compiled.
So if there are 3 Templates A, B and C, and compilation of B throws an Exception, A has already been written to disk, while B and C haven't, making the state of the compiled templates inconsistent.
Solution: gather all templates in memory before writing them down as a last step.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.