Skip to content

Commit

Permalink
Add a warning about context changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadden committed Jun 29, 2020
1 parent 83eda8d commit 7834bce
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions docs/the-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ The Context
===========

<script>
init_alia_demos(['custom-context', 'doubly-extended-context']);
init_alia_demos(['custom-context']);
</script>

!> Contexts are in the midst of change! The basic concepts are still the same,
but the examples here is incomplete. Beware!

Almost every function in alia takes a context as its first parameter. The
context is how application code accesses the utilities provided by alia: the
data graph, event dispatch info, etc.
Expand Down Expand Up @@ -39,12 +42,3 @@ as a globally accessible property in your app.
<div class="demo-panel">
<div id="custom-context"></div>
</div>

And of course, your application can extend the context with as many objects as
it wants...

[source](context.cpp ':include :fragment=doubly-extended-context')

<div class="demo-panel">
<div id="doubly-extended-context"></div>
</div>

0 comments on commit 7834bce

Please sign in to comment.