Browse Source

trying diff code style

Paul Liverman III 6 years ago
parent
commit
4fed9880a0
2 changed files with 1 additions and 2 deletions
  1. 0
    1
      layouts/main.moon
  2. 1
    1
      views/docs/v1.moon

+ 0
- 1
layouts/main.moon View File

@@ -1,7 +1,6 @@
1 1
 import Widget from require "lapis.html"
2 2
 
3 3
 csrf = require "lapis.csrf"
4
-config = require("lapis.config").get!
5 4
 
6 5
 class extends Widget
7 6
   content: =>

+ 1
- 1
views/docs/v1.moon View File

@@ -135,7 +135,7 @@ class Docs_1 extends Widget
135 135
       text " string with valid authorization and a new task item will be returned. Here's an example response:"
136 136
 
137 137
     blockquote ->
138
-      code '{ "success": true, "task": { "id": 4, "user_id": 2, "content": "Get a new API key.", "done": false, "created_at": "2018-04-25 04:27:47", "updated_at": "2018-04-25 04:27:47" } }'
138
+      code style: "white-space: normal;", '{ "success": true,\n  "task": { "id": 4, "user_id": 2, "content": "Get a new API key.", "done": false, "created_at": "2018-04-25 04:27:47", "updated_at": "2018-04-25 04:27:47" } \n}'
139 139
 
140 140
     p ->
141 141
       text "This same format is used to return any task, whether it is as a response to these simple queries, or as part of an array returned by "