Giter Club home page Giter Club logo

blade's Introduction

a concise and powerful web development framework

@biezhi on weibo Hex.pm Build Status release

中文

What Is Blade?

blade Is a concise and powerful web development framework. If you like it, can be Star and Fork, thanks!

  • Simple MVC
    Use Java language to complete the MVC more concise.

  • Restful
    Provide a Restful style routing interface.

  • Multiple routing configuration
    Routing configuration in the form of more functional routing, annotations routing, routing reflection way.

  • Coding/JSON/configuration file
    Blade offers a variety of configurations, including JSON, the Properties file, hard coding.

  • Plug-in extension mechanism
    Blade extensions support you use third party components, modular development of more convenient.

  • Template engine Plugin
    Support access to mainstream template engine, there are beetl, jetbrick, velocity engine.

  • Support JDK1.6 +
    Support jdk1.6 or higher version.

  • The source code of less than 100kb
    The source code of the blade framework is less than 100 KB, learn easy, get started quickly, the code is simple.

Example

public class App extends Bootstrap{

	Logger logger = Logger.getLogger(App.class);
	@Override
	public void init() {
		// register router
		Blade.regsiter("/hello", SayHi.class, "hello");
		
		// anonymous router,java8 so simple
		Blade.get("/get", new Router() {
			@Override
			public String handler(Request request, Response response) {
				System.out.println("come get!!");
				System.out.println(request.query("name"));
				return "get";
			}
		});
		
		// multiple routing, java8 syntax
		Blade.get("/", "/index").run(request, response) -> {
			System.out.println("come index!!");
			return "index";
		});
	}
	
}

OK, all this may seem simple, refer to the guidelines for use more ready-made examples for your reference:

Plan

1. Improve the document
2. Add configurable log
3. Complete the Java China BBS
4. Maintain and optimize the code

Update

update log

licenses

Blade Framework based on the Apache2 License

Contact

Blog:https://biezhi.me

Mail: biezhi.me#gmail.com

QQ Group: 1013565

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.