Giter Site home page Giter Site logo

Comments (10)

jimaek avatar jimaek commented on May 23, 2024

The main file for Handlebars is not handlebars.min.js. It loads this one http://cdn.jsdelivr.net/handlebarsjs/1.3.0/handlebars.runtime.min.js

Based on the structure I would guess this decision was made because handlebars.runtime.min.js is the only file present in all previous versions.

To compile it in a group you could do the following:
http://cdn.jsdelivr.net/g/[email protected](handlebars.min.js)

from api.

ryanpitts avatar ryanpitts commented on May 23, 2024

That works perfectly! Thank you.

Not sure if that's something that can be documented somewhere, but it definitely threw me.

from api.

jimaek avatar jimaek commented on May 23, 2024

I am glad it works now. Not sure how to document it, will see if anyone else struggles with it :)

Let me know if you need anything else.

from api.

ryanpitts avatar ryanpitts commented on May 23, 2024

Just a thought, but on the record for a given library ...

screen

... it might be cool to add a line that says "Adding this to a compiled group will call: {{ main file }}."

That would be useful information for any library, really. And also draw more attention to the grouped requests, which are awesome.

from api.

jimaek avatar jimaek commented on May 23, 2024

You are right, I should write somewhere what is the mainfile of each project.

from api.

jimaek avatar jimaek commented on May 23, 2024

I added it to the homepage http://www.jsdelivr.com/
Unfortunately I suck as a designer :(

from api.

ryanpitts avatar ryanpitts commented on May 23, 2024

It gets the job done, though! Thanks for doing that :)

from api.

tomByrer avatar tomByrer commented on May 23, 2024

Unfortunately I suck as a designer :(

I like the smaller font idea

from api.

jimaek avatar jimaek commented on May 23, 2024

@tomByrer Haha thanks

from api.

tomByrer avatar tomByrer commented on May 23, 2024

For future reference, mainfile=handlebars.runtime.min.js is for when the templates are pre-compiled, so that version is the "optimal browser-only" version.

from api.

Related Issues (20)

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.