This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Releases: guyotJs/FjallJS
Releases · guyotJs/FjallJS
v1.2
v1.1
# Fjall v1.1
Fjall has been optimized heavily! 289 => 177 lines, 4.79kb => 3.46kb . Removed all setInterval() timers replaces with window.main = function(){}. Now only asks for the DOM elements twice once for the data and once for the main attributes.
The attribute names have shifted to be more concise.
- if/else
- data
- for
- bind
- mobile
- lint
- click
<body data='{"arr":["One","Two"]}'>
<button click='arr.push("Three")'>Add Something</button>
<ol for="arr" item="li" item-class="green"></ol>
<script src="./fjall-min.js"></script>
</body>Licensed with MIT
FjallJS release 1.0
# FjallJS v1.0
FjallJS is here lighweight and versatile.
Write in reacticity with ONE JavaScript file.
Attributes for any project like
- l-if
- l-data
- lint
- l-bind
- l-click
- and l-for
<body l-data='{"arr1":["Something","Another Thing"]}'>
<button l-click='arr1.push("Yay you added even more something")'>Add something</button>
<ol l-for="arr1" for-item="li" item-class="green"></ol>
<script src="./fjall-min.js"></script>
</body>Liscensed with MIT
v0.5.1
Minor bug fix to allow several variable in jif(); and jelse(); tags
0.5
Jhtml Prerelease v0.5
Updated jif(); and jelse(); system
let show = false;
function react(){
jif([{show}]);
return 0;
}0.4
Added Mobile and Computer Tags
// initiate the tags
jscreen();<p mobile>The text appears if the screen is below 600px</p>
<p computer>But this text appears if the screen is above 600px</p>Prerelease v0.3 Nov. 14 2023
Jhtml Prerelease v0.3
Added else tag
function react(){
jelse([var1,var2]);
}<p if="var1">Hi</p>
<p else="var1">Bye</p>Prerelease v0.3 Nov. 14 2023
Jhtml Prerelease v0.2
Added continuous reactivity
Include a react function in <script></script>
The function must return 0
var react = function(){
// Add Reactive content here
return 0;
}Nov. 14 2023 prerelease v0.2