Releases: anuvgupta/block.js
Releases · anuvgupta/block.js
block.js responsive
- improved event management
- blockfile hybrid syntax - JS/block
text text1
val Hello World
{
alert('hi')
}
break br0
block
- hybrid syntax event callbacks
text testText
css
display block
input textbox1
placeholder input
type text
:keyup,keydown
{
block.sibling('testText').html(block.node().value);
}
- responsiveness - window size events (similar to media queries)
div test1
@query window width <= 700
{
block.css('background-color', 'red');
}
@query window width > 700
{
block.css('background-color', 'blue');
}
and tons of other features! docs will be released once a stable version with a complete feature set is released, but this version works well for current purposes
block.js stable
- Blockfile philosophy implemented
- More functions
- Works with slop.ml and pocketjs pages
block.js concept
- Basic DOM element wrapper
- Similar to View.js
- Limited features/functionality
- Data loaded in JS