๐ Oh look, a visitor!
This is the place my coding projects are stored. Besides lecturing mathematics, I really enjoy to develop web applications using self-made libraries like pwa, colony and idb. Have a look around!
Split the structure and content of your Web Apps.
Home Page: https://github.com/ljans/elements/wiki
License: MIT License
Imagine the following dataset:
{
value: '1st level value',
context: {
value: '2nd level value'
}
}
Applied on this template:
<p>{{value}}</p>
{{#context}}
<p>{{value}}</p>
{{/context}}
This output is produced:
1st level value
1st level value
That happens, because the 'value' of the global context is rendered in the whole template before the context section gets rendered due to the order of processing in renderRecursive
. So after renderVariables
, the template looks like this:
<p>1st level value</p>
{{#context}}
<p>1st level value</p>
{{/context}}
An advantage of this behavior is, that static values referring to an upper context inside big lists only have to be rendered once. The disadvantage is, that names can't be re-assigned inside sections.
Change order of processing in renderRecursive
. This has to be checked for undesired side-effects.
Introduce backwards-context with a double-dot like this:
{{#context}}
<p>{{value}}</p>
<p>{{..value}}</p>
{{/context}}
This should then produce the following output:
2nd level value
1st level value
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.