English 🇺🇸 | 中文 🇨🇳
Meepo, Five are stronger than one. Divided they stand, united they fall.
a non-professional template engine that does not break the master
syntax,
and is based on the comments and markup of the master
syntax.
The syntax of most modern template engines will break the syntax of the target file when previewing and editing.
Meepo solves this problem with high performance like C's macro by using only static transformations and limited dynamic control.
- Generate
*.java
fromjava
, both are compilable. - Generate
*.sql
fromsql
, both are executable. - Generate
*.htm
fromhtm
, both are previewable. placeholder
supports customizing variable's boundaries and escaping- flexible and efficient customizing (dynamic, static, runtime) function using java
① DIY clone
and install
is powerful.
② Using Maven Central is stable.
<dependency>
<groupId>pro.fessional</groupId>
<artifactId>meepo</artifactId>
<version>${meepo.version}</version>
</dependency>
③ Using SNAPSHOT is the latest.
<repository>
<id>oss-sonatype</id>
<name>oss-sonatype</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Meepo
provides common methods and caching
that can handle the most common scenarios.
- File template - use
Meepo
as entry,#parse
,#merge
- Placeholder template - use
Holder
as entry,#piece
- String Parsing - use
Parser
to constructGene
,#parse
you can customize the use of Parser
and Gene
to combine the tool as you need.
spring-mvc
module integrates with SpringMvc
,
can be used independently or pre-processed with other templates.
<dependency>
<groupId>pro.fessional.meepo</groupId>
<artifactId>spring-mvc</artifactId>
<version>${meepo-spring.version}</version>
</dependency>
spring-spel
module registers the spel
engine, provide spring Bean
and SpEL
.
<dependency>
<groupId>pro.fessional.meepo</groupId>
<artifactId>spring-spel</artifactId>
<version>${meepo-spring.version}</version>
</dependency>