Added information to include external library 05/11205/1
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 10 Oct 2017 14:36:35 +0000 (16:36 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 10 Oct 2017 14:38:19 +0000 (16:38 +0200)
Describe default directories used by application
framework inside the apps.

Bug-AGL: SPEC-883

Change-Id: Iea0280197db6091b4963134f8b20b5dc10b9767b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
docs/2.1-widgets.md

index 084ee98..abc33a4 100644 (file)
@@ -76,6 +76,16 @@ wgtpkg-pack DIRECTORY -o file.wgt
 
 ## Writing a widget
 
+### App directory organization
+
+There are few directories that are by default used in the binder. At the root
+directory of the widget folder, here are the directories that could be used:
+
+- *lib* : default directory where lies external libraries needed for
+ the binding. Binding could be stored here too or in another directory of your
+ choice.
+- *htdocs* : root HTTP directory if binding has web UI.
+
 ### The steps for writing a widget
 
 1. make your application