-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Architecture | ||
|
||
Krop uses a model-view-controller (MVC) architecture, which divides a web application into three components: | ||
|
||
- models, which manages the data in the application; | ||
- [views](views.md), which is responsible for generating the user interface; and | ||
- controllers, which handles actions from the user interface and implements the application logic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
laika.navigationOrder = [ | ||
README.md | ||
quick-start.md | ||
principles.md | ||
architecture.md | ||
application.md | ||
server.md | ||
views.md | ||
routes | ||
principles.md | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Views | ||
|
||
Views are responsible for generating the user interface of your application. | ||
A user interface could be HTML displayed in a web browser, JSON returned from an API endpoint, or code that runs client-side. | ||
As there are several different kinds of user interfaces there are several different systems for creating views. | ||
|
||
|
||
## Static Files | ||
|
||
## Templates | ||
|
||
Krop uses [Twirl][twirl] for templates, which are views that are mostly text with a few pieces of programmatic content. Templates are ideal for generating HTML. | ||
|
||
By default templates are found in `backend/src/main/twirl/`. | ||
|
||
|
||
[twirl]: https://www.playframework.com/documentation/3.0.x/ScalaTemplates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters