Skip to content
Permalink
Browse files

The real initial commit

  • Loading branch information...
Kripth committed Jan 3, 2019
1 parent e72fb06 commit 57ea37135af780bd4edccbbbd4953029ae8ad0a3
@@ -12,4 +12,3 @@
*.properties
.dub
.scorpion
/scorpion
21 LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Scorpion Framework

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,45 @@
Scorpion
<img align="right" alt="Logo" width="100" src="https://i.imgur.com/A7ozW1W.png">
=======

[![DUB Package](https://img.shields.io/dub/v/scorpion.svg)](https://code.dlang.org/packages/scorpion)
[![Build Status](https://travis-ci.org/scorpion-framework/scorpion.svg?branch=master)](https://travis-ci.org/scorpion-framework/scorpion)

A web framework written in D.

=======

dub.sdl
```sdl
name "example"
dependency "scorpion" version="~>0.1"
dependency "scorpion-bootstrap" version="~>4.1.3"
```

views/index.dt
```
doctype html
html
head
title Welcome to Scorpion
body
p Welcome to Scorpion
```

src/controller.d
```d
module controller;
import scorpion;
@Controller
class ExampleController {
@Get
@Get("index.html")
getIndex(Response response, Model model) {
response.body = model.compile!"index.dt"();
}
}
```
11 dub.sdl
@@ -1,10 +1,9 @@
name "scorpion"
description "An MVC framework"
description "A simple-to-use web framework"
homepage "scorpionframework.org"
license "MIT"
//dependency "ddbc" version="~>0.3.9"
dependency "asdf" version="~>0.4.3"
dependency "diet-ng" version="~>1.5.0"
dependency "my-ip" version="~>0.2.0"
dependency "lighttp" version="~>0.3.0"

postGenerateCommands "if not exist .scorpion mkdir .scorpion" "copy $SCORPION_PACKAGE_DIR\\init.d .scorpion\\init.d" "dub --single .scorpion/init.d" "dub build --single --arch=$ARCH --build=$BUILD_TYPE .scorpion/starter.d" "copy .scorpion\\exe\\* ." platform="windows"
postGenerateCommands "mkdir -p .scorpion" "cp $SCORPION_PACKAGE_DIR/init.d .scorpion/init.d" "dub --single .scorpion/init.d" "dub build --single --arch=$ARCH --build=$BUILD_TYPE .scorpion/starter.d" "cp .scorpion/exe/* ." platform="posix"
dependency "lighttp" version="~>0.4.0"
dependency "shark" version="~>0.1.1"
98 init.d

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 57ea371

Please sign in to comment.
You can’t perform that action at this time.