Coder Social home page Coder Social logo

handlebars.js's Introduction

Components

Package manager-friendly distributions of many popular Components.

Note: Components is NOT a package manager.

What is it

There are many packages managers... More than one for each language! And for each one you need a mirror repository with built *.js.

Components is here to centralize this, having only one repository by project, supporting every package manager there is and keeping project repositories up-to-date.

Keep it simple: all Components repositories will be made available in the official list of your package manager (naming may change based on said manager): you don't have to do anything, just install our component like any other.

When we can extend the package manager, Components comes with some additionnal features (the install directory for example).

Package Managers

Although package manager support varies from package to package, Components aims to support as many package managers as possible. Some examples include:

Notes

The Bower repositories try to have a standardized name of components-*.

Maintainers

If you are using grunt as part of the build process for your library, you can use this helper to release a new version of your library in the main repo, and the compiled version of your code to your component repository:

https://github.com/walmartlabs/grunt-release-component

Contributing

If you see a Component that requires an update, or is missing support for a certain package manager, feel free to open an issue or better, a pull request!

handlebars.js's People

Contributors

alboro avatar appleboy avatar erisds avatar fat avatar hsalokor avatar jaylinski avatar justblackbird avatar kpdecker avatar majorbreakfast avatar nknapp avatar paulirish avatar robloach avatar sindresorhus avatar slexaxton avatar timotm avatar wagenet avatar willrnch avatar yoavniran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

handlebars.js's Issues

jspm install only downloads handlebars.js

Im using JSPM so I install using: "jspm install github:components/handlebars.js"

When I do this, the only file in the components folder is handlebars.js. I dont get any of the minified versions and not the handlebars.runtime which is the one I need.

Is there a way to get the runtime using this shim?

for now looks like I need to get the full release from: wycats/handlebars.js

thanks.

Strange usage scenario with browserify

Objective: able to expose handlebars outside of bundle.js such that the other scripts can do a require("handlebars)

Question: Is this the correct way? Are there any better ways of doing this? As there is no problem doing a setup with jquery, moment etc

How this being done

  • bower install handlebars
  • npm install handlebars
  • grunt-browserify is being setup as below:
    browserify: {
      top_libs:{
        src:[
          'other_source.js'
        ],
        dest:'target.js',
        options:{
          plugin:["minifyify"],
          transform:["debowerify"],
          alias:[
            'handlebars/dist/handlebars.js:handlebars'
          ],
          preBundleCB: function (b) {
            b.require('handlebars', {expose: 'handlebars'});
          }
        }
      }
    }

using combining grunt-contrib-handlebars to precompile and and using runtime.amd and runtime.

Precompilation is nice.
I takes a load of client side.
I had to resort using handlebars.runtime and make a shim dependency config in a project setup.
I found no way to compile a template for runtime.amd since when I load it as a dependency it returns a Handlebars Object with a ['default'] object inside featuring all the methods the compiled template need.
Is there any known workaround to load this using
handlebars.runtime.amd and grunt-contrib-handlebars.
Is this up to date?

minified versions

can we get minified versions of the uncompressed versions that way we can use them in bower for production?

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.