Loading AI tools
来自维基百科,自由的百科全书
Apache Velocity是一個基於Java的模板引擎,它提供了一個模板語言去引用由Java代碼定義的對象,旨在確保Web應用程式在表示層和業務邏輯層之間的隔離(即MVC設計模式)。
下面是一些利用Velocity的常見應用類型:
如下的Web模板:
## Velocity Hello World
<html>
<body>
#set( $foo = "Velocity" )
## followed by
Hello $foo World!
</body>
</html>
經過Velocity處理後會生成如下的HTML代碼:
<html>
<body>
Hello Velocity World!
</body>
</html>
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.