Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,13 @@ lazy val unidocs = project
// To avoid including this in the core build
lazy val examples = project
.in(file("examples"))
.enablePlugins(
KropTwirlLayout
)
.settings(
commonSettings,
// To avoid warn "unused import" for krop/examples/htmx/views/*.scala.html files
scalacOptions += "-Wconf:src=.*/views/html/.*:silent",
moduleName := "krop-examples",
mimaPreviousArtifacts := Set.empty,
// This sets Krop into development mode, which gives useful tools for
Expand Down
1 change: 1 addition & 0 deletions docs/src/pages/directory.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ laika.navigationOrder = [
controller
tools.md
development.md
examples
]
6 changes: 6 additions & 0 deletions docs/src/pages/examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Examples

The following examples demonstrate Krop in action, from a simple application to more advanced patterns.
They illustrate how Krop's design enables you to build everything from fast and scalable JSON APIs
to applications that serve static files, handle form data, compose routes, and use middleware for cross-cutting concerns like authorization.
These practical examples are here to help you see Krop's philosophy in practice and to serve as a starting point for your own projects.
4 changes: 4 additions & 0 deletions docs/src/pages/examples/directory.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
laika.navigationOrder = [
README.md
htmx.md
]
Loading