-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·86 lines (79 loc) · 3.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The Harness Project</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800,900" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/railscasts.min.css">
<link rel="stylesheet" href="/assets/css/scribbler-global.css">
<link rel="stylesheet" href="/assets/css/scribbler-landing.css">
<link rel="stylesheet" href="/assets/css/prism.css">
</head>
<body>
<nav>
<div class="logo"></div>
<ul class="menu">
<div class="menu__item toggle"><span></span></div>
<li class="menu__item"><a href="/docs"><i class="fa fa-book"></i> Documentation</a></li>
<li class="menu__item"><a href="https://github.com/harnessflex"><i class="fa fa-github"></i> Github</a></li>
</ul>
</nav>
<div class="hero">
<h1 class="hero__title">The Harness Project</h1>
<p class="hero__description">Imba Framework for Rapid API Development</p>
</div>
<div class="hero__code">
<pre><code class="language-python">import { @model, Http } from '@harnessflex/framework'
import { Post } from '../../Models'
export class PostController
@model({ id: Post })
@returns(Http.AsyncResponse)
def show { resolve, binding }
resolve binding.id, do({ response, error })
Http.Response.json error ? (new Http.Error.NotFoundError 'Post Not Found.') : response</code> </pre>
</div>
<div class="wrapper">
<div class="installation">
<h3 class="section__title">Installation</h3>
<div class="tab__container">
<ul class="tab__menu">
<li class="tab" data-tab="mac">mac</li>
<li class="tab active" data-tab="linux">linux</li>
<!-- <li class="tab" data-tab="win">win</li> -->
</ul>
<pre class="nohighlight code">
<code class="tab__pane mac">$ npm i -g @harnessflex/craftsman</code>
<code class="tab__pane active linux">$ npm i -g @harnessflex/craftsman</code>
<code class="tab__pane win">$ npm i -g @harnessflex/craftsman</code>
</pre>
</div>
</div>
<div class="feature">
<div class="feature__item">
<h3 class="section__title">Imba</h3>
<p>Harness Flex is built with Imba, a new Programming Language that provides a cleaner syntax and encourages faster development.</p>
</div>
<div class="feature__item">
<h3 class="section__title">Laravel Mix</h3>
<p>Laravel Mix provides a clean, fluent API for definining basic webpack build steps for Harness Flex. By default, Harness uses Mix to build your application assets.</p>
</div>
<div class="feature__item">
<h3 class="section__title">Craftsman</h3>
<p>Craftsman is the development CLI for Harness, making building Harness Applications easier and faster. </p>
</div>
</div>
<div class="callout">
<p>Read our documentation to get started.</p>
<a href="/docs" class="button--primary">Documentation</a>
</div>
</div>
<footer class="footer">Released under the MIT License <br> Copyright © 2021 Mj Fold
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="/assets/js/prism.js"></script>
<script src="/assets//js/scribbler.js"></script>
</body>
</html>