aseemk / express-blocks Goto Github PK
View Code? Open in Web Editor NEWMiddleware for Express that adds view block support.
Middleware for Express that adds view block support.
what about a default value for a block, if no view set an arbitrary value for the block, i get a default content.
something implemented?
Child views should specify their title, not controllers.
Calling a function to fill in a block, like block('foo', 'contents of foo')
, and having that add to the block's HTML instead of define it, feels kind of weird. Perhaps we can improve this to something like block['foo'] += 'contents of foo'
?
I would love people's opinions on this, so if you're reading this, feel free to chime in!
There needs to be a better way of using blocks of arbitrary HTML than putting it all into a JavaScript string. A simple use case is an inline <script>
or <style>
tag.
Not sure if this should be the default (it is a breaking change but it seems like a really good default), but we should at least add an option to say "only include this script or stylesheet [or arbitrary block of HTML] at most once", sort of like PHP's require_once()
.
That would be perfect for view partials then, that depend on a script or stylesheet but may be included multiple times.
is there any examples with jade?
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.