Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSteffanick committed Sep 25, 2018
1 parent 42a4b49 commit bc84099
Show file tree
Hide file tree
Showing 6 changed files with 588 additions and 15 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [0.2.0] - 2018-09-25
### Added
* [/webapp/modules/]
* [bootstrap.xquery]
* `bootstrap:card()` ([bootstrap.xquery])
* `bootstrap:card-layout()` ([bootstrap.xquery])
* `bootstrap:container()` ([bootstrap.xquery])
* `bootstrap:javascript()` ([bootstrap.xquery])
* `bootstrap:list-group()` ([bootstrap.xquery])
* `bootstrap:meta()` ([bootstrap.xquery])
* `bootstrap:navbar()` ([bootstrap.xquery])
* `bootstrap:navbar-brand()` ([bootstrap.xquery])
* `bootstrap:navbar-ul()` ([bootstrap.xquery])
* `bootstrap:navbar-search()` ([bootstrap.xquery])
* `bootstrap:stylesheet()` ([bootstrap.xquery])

## [0.1.1] - 2018-06-07
### Changed
* `m:html5()` @param `$options``$parameter` ([model.xquery])
Expand Down Expand Up @@ -54,7 +70,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
* [LISENCE]
* [README.md]

[Unreleased]: https://github.com/AdamSteffanick/mvc-xquery/compare/v0.1.1...HEAD
[Unreleased]: https://github.com/AdamSteffanick/mvc-xquery/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/AdamSteffanick/mvc-xquery/compare/v0.1.1...v0.2.0
[0.1.1]: https://github.com/AdamSteffanick/mvc-xquery/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/AdamSteffanick/mvc-xquery/compare/v0.0.2...v0.1.0
[0.0.2]: https://github.com/AdamSteffanick/mvc-xquery/compare/v0.0.1...v0.0.2
Expand All @@ -66,8 +83,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
[README.md]: ./README.md

[/webapp/]: ./webapp/
[/webapp/modules/]: ./webapp/modules/
[model.xquery]: ./webapp/model.xquery
[view.xquery]: ./webapp/view.xquery
[controller.xquery]: ./webapp/controller.xquery
[bootstrap.xquery]: ./webapp/modules/bootstrap.xquery

[shields.io]: http://shields.io/
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Copyright (C) 2018 [Adam Steffanick](https://www.steffanick.com/adam/)
* [**Latest release**](https://github.com/AdamSteffanick/mvc-xquery/releases/latest)

## Documentation
### BaseX 9.0:
### BaseX 9.0.2:
* Download this repository and place all files within the appropriate subdirectories of `basex`
* Modify [model.xquery], [view.xquery], and [controller.xquery] as needed
* Run the [BaseX HTTP Server](http://docs.basex.org/wiki/Startup#HTTP_Server)
Expand All @@ -30,19 +30,25 @@ Copyright (C) 2018 [Adam Steffanick](https://www.steffanick.com/adam/)
</html>
```

## Features
* [Bootstrap] support

## Manifest tree
The `mvc-xquery` directory should contain:
MVC-XQuery should contain:

```
mvc-xquery
├── CHANGELOG.md
├── LICENSE
├── README.md
└── webapp
├── controller.xquery
├── model.xquery
├── modules
│   └── bootstrap.xquery
└── view.xquery
1 directory, 6 files
2 directories, 7 files
```

## License
Expand All @@ -53,10 +59,12 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

[CHANGELOG]: ./CHANGELOG.md
[version-badge]: https://img.shields.io/badge/mvc--xquery-v0.1.1-0038e2.svg?style=flat-square
[version-badge]: https://img.shields.io/badge/mvc--xquery-v0.2.0-0038e2.svg?style=flat-square
[LICENSE]: ./LICENSE
[license-badge]: https://img.shields.io/badge/license-GPL-0038e2.svg?style=flat-square

[model.xquery]: ./webapp/model.xquery
[view.xquery]: ./webapp/view.xquery
[controller.xquery]: ./webapp/controller.xquery
[controller.xquery]: ./webapp/controller.xquery

[Bootstrap]: https://getbootstrap.com/
9 changes: 6 additions & 3 deletions webapp/controller.xquery
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ xquery version "3.1" encoding "UTF-8";
:
: @author Adam Steffanick
: @see https://www.steffanick.com/adam/
: @version v0.1.1
: @version v0.2.0
: @see https://github.com/AdamSteffanick/mvc-xquery
: June 7, 2018
: September 25, 2018
: @since v0.0.2
:
: This program is free software: you can redistribute it and/or modify
Expand All @@ -35,6 +35,9 @@ module namespace c = "controller";
import module namespace m = "model" at "model.xquery";
import module namespace v = "view" at "view.xquery";

(: optional, included function library modules :)
import module namespace bootstrap = "bootstrap" at "modules/bootstrap.xquery";

(:~
: A function to return an HTML5 home page to the user.
:
Expand All @@ -56,4 +59,4 @@ function c:home(
{
m:html5()
=> v:html()
};
};
6 changes: 3 additions & 3 deletions webapp/model.xquery
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ xquery version "3.1" encoding "UTF-8";
:
: @author Adam Steffanick
: @see https://www.steffanick.com/adam/
: @version v0.1.1
: @version v0.2.0
: @see https://github.com/AdamSteffanick/mvc-xquery
: June 7, 2018
: September 25, 2018
: @since v0.0.2
:
: This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -405,4 +405,4 @@ declare function m:html5(
return (
$html
)
};
};
Loading

0 comments on commit bc84099

Please sign in to comment.