Giter Club home page Giter Club logo

express-blocks's People

Contributors

aseemk avatar laurie71 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

imclab nattton

express-blocks's Issues

default value

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?

Title block

Child views should specify their title, not controllers.

Better API

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!

Blocks of arbitrary HTML

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.

Require scripts/stylesheets once

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.