Takes (framework)

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Lua error in package.lua at line 80: module 'strict' not found.

Takes
96px
Developer(s) Yegor Bugayenko
Stable release 0.32.7 / April 3, 2016 (2016-04-03)
Written in Java
Operating system Cross-platform
Platform Java Virtual Machine
Type Web framework
License MIT
Website <strong%20class= "error"><span%20class="scribunto-error"%20id="mw-scribunto-error-2">Lua%20error%20in%20Module:Wd%20at%20line%20405:%20invalid%20escape%20sequence%20near%20'"^'. http://<strong%20class="error"><span%20class="scribunto-error"%20id="mw-scribunto-error-2">Lua%20error%20in%20Module:Wd%20at%20line%20405:%20invalid%20escape%20sequence%20near%20'"^'.Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

Takes is an open source web framework based on the principles of immutability and object-oriented programming.

Its key benefits, comparing to all others, include these four fundamental principles:

  1. Not a single NULL
  2. Not a single public static method
  3. Not a single mutable class, and
  4. Not a single instanceof keyword, type casting, or reflection.

Features

  • No configuration files
  • No need to use any web container
  • Hit-refresh debugging
  • Native support of XML+XSLT templating
  • Native support of JSON
  • JUnit integration
  • Velocity, JSP, JSF templates/layouts
  • Open-source
  • Lightweight

Example

A Hello World Takes application, with just one file:

Hello.java
import org.takes.http.Exit;
import org.takes.http.FtBasic;
import org.takes.facets.fork.TkFork;
public final class Hello {
  public static void main(final String... args) throws Exception {
    new FtBasic(
      new TkFork(new FkRegex("/", "hello, world!")), 8080
    ).start(Exit.NEVER);
  }
}

References

External links

  • No URL found. Please specify a URL here or add one to Wikidata.