Skip to content

Commit 4e07f28

Browse files
committed
Presentation03
1 parent ddcfa6d commit 4e07f28

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44

55
[For the newbies there is a set of videos that nicely explain nim, jester (and moustachu) and got me up and running..click to view](https://www.youtube.com/watch?v=zSXbifhuZSo&t=600s)
66

7-
[Wiki - but read below info first](https://github.com/some-avail/json2web/wiki)
7+
[Wiki - click to go there; but read below info first](https://github.com/some-avail/json2web/wiki)
88

99

1010
### Introduction
11-
Firstly, Json2web is meant for Nim-programmers, not for end-users. It can be seen as a sample-application or small framework, that a programmer can use as a base to create an end-user-app. Therefore (besides code) no executable releases are delivered, which the program is supposed to compile him-/herself.
12-
Json2web started originally as a set of nim-modules plus their implementation to make it easy to create web-controls, like checkboxes. Based on the principle of separation of concerns, the idea was to create a separate gui-definition in json, from which the gui is generated by specialized procedures. But actually only the complicated elements are generated, the simple ones can be put in project_inner.html. Before Json2web, in Readibl I used nim-constructs for the definition, but that was cumbersome. The project has turned into some subprojects of increasing complexity to showcase those posibilities. The latest subproject is Datajson, which is a generalized database-form (based on Sqlite). The project exposes different options to do things that may or may not be usefull in different situations and could be usefull for learning-purposes.
11+
Firstly, Json2web is meant for Nim-programmers, not for end-users. It can be seen as a sample-application or small framework, that a programmer can use as a base to create an end-user-app. Therefore (besides code) no executable releases are delivered, which the programmer is supposed to compile him-/herself.
12+
13+
Json2web started originally as a set of nim-modules plus their implementation to make it easy to create web-controls, like checkboxes. Based on the principle of separation of concerns, the idea was to create a separate gui-definition in json, from which the gui is generated by specialized procedures. But actually only the complicated elements are generated, the simple ones can be put in project_inner.html. Before Json2web, in Readibl I used nim-constructs for the definition, but that was cumbersome.
14+
15+
The project has turned into some subprojects of increasing complexity to showcase those posibilities. The latest subproject is Datajson, which is a generalized database-form (based on Sqlite). The project exposes different options to do things that may or may not be usefull in different situations and could be usefull for learning-purposes.
1316

1417
### Json as gui-definition
1518
The method to do this is that you start with a json-file in which you create the definition of the needed controls or web-elements, based on a template-json-file. In this template-definition all the possible controls are written, which you can alter or copy to accomodate you gui.
@@ -65,8 +68,8 @@ The technique to run specific code is based on a textarea-element "curaction" in
6568
- project_inner.html
6669
- project_outer.html
6770
- project_gui.json
68-
- /public/css-sheet
69-
- /public/javascriptfile
71+
- /public/project_sheet.css
72+
- /public/project_script.js
7073
- /stored_gui_nodes/ use dir only when persistOnDisk is chosen
7174
- try to compile and run the code. When you decide you want to build something based on the code do the following:
7275
- substitute your own projectname for the project (currently datajson) both in the filenames and for constants and variables in the modules themselves.

mostfiles/datajson_startup.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ routes:
204204
@[["name", @"All_tables"]])[0][0]
205205
tablechangedbo = true
206206

207-
echo "~~~~~~~~~~~~~~~"
207+
#echo "~~~~~~~~~~~~~~~"
208208
addcountit = 0
209209
# Collect filter-values
210210
# Sample the var fieldtypesq to create filtersq for the filter-values

0 commit comments

Comments
 (0)