mirror of
https://github.com/flynx/features.js.git
synced 2025-12-25 20:41:57 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
09a1e9575c
commit
1acbfa975c
36
README.md
36
README.md
@ -44,8 +44,23 @@ For example splitting an app into:
|
|||||||
|
|
||||||
Each _feature_ extending the same base API but implementing only it's specific
|
Each _feature_ extending the same base API but implementing only it's specific
|
||||||
functionality, adding new methods where needed, and on setup only the relevant
|
functionality, adding new methods where needed, and on setup only the relevant
|
||||||
features/functionality for a specific runtime are loaded, for example for a
|
features/functionality for a specific runtime are loaded, for example creating
|
||||||
Web server context creating the following prototype chain:
|
the following prototype chains:
|
||||||
|
|
||||||
|
<table width="100%">
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
Web site
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Standalone app
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
|
||||||
```
|
```
|
||||||
+-UI-------+
|
+-UI-------+
|
||||||
| Web Site |
|
| Web Site |
|
||||||
@ -55,9 +70,16 @@ Web server context creating the following prototype chain:
|
|||||||
+--------------------+
|
+--------------------+
|
||||||
| Base Data Handling |
|
| Base Data Handling |
|
||||||
+--------------------+
|
+--------------------+
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
And for a standalone app:
|
</td>
|
||||||
|
<td>
|
||||||
|
|
||||||
```
|
```
|
||||||
+-UI----------+
|
+-UI----------+
|
||||||
| Commandline |
|
| Commandline |
|
||||||
@ -74,6 +96,11 @@ And for a standalone app:
|
|||||||
+--------------------+
|
+--------------------+
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
Note that since _JavaScript_ does not support multiple inheritance, the
|
Note that since _JavaScript_ does not support multiple inheritance, the
|
||||||
feature dependency _graph_ is linearized when creating a prototype/mixin
|
feature dependency _graph_ is linearized when creating a prototype/mixin
|
||||||
chain.
|
chain.
|
||||||
@ -337,8 +364,9 @@ Copyright (c) 2018+, Alex A. Naanou,
|
|||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
|
||||||
<!-- LINKS -->
|
<!--------------------------------------------------------------------LINKS--->
|
||||||
|
|
||||||
[actions]: https://github.com/flynx/actions.js
|
[actions]: https://github.com/flynx/actions.js
|
||||||
|
|
||||||
|
|
||||||
<!-- vim:set ts=4 sw=4 spell : -->
|
<!-- vim:set ts=4 sw=4 spell : -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user