Comments (9)
Having actually thought about this for a minute (it's late :) I see that you wouldn't be able to render anything of value without having a default template engine...
from clndr.
Awesome, I'm glad handlebars is working for you. You're right that the plugin doesn't make much sense without a templating engine, however underscore is only a conditional dependency.
When you supply your own render
function to your clndr instance, you are telling clndr "don't worry about underscore, I've got my own templating engine". In this case, clndr doesn't look for underscore and you don't need to include it in your project. If you don't supply a templating engine, however, it's going to look for underscore and give you an error if it's not there.
If you have any other suggestions as to how this could work, definitely let me know!
from clndr.
My main concern is with Underscore being included in the Bower dependencies.
I installed CLNDR via Bower and I'm not using Underscore, but it still gets installed. Admittedly, not the biggest issue—I just like things to be tidy ;) IF it didn't get installed by default, and I wasn't using a custom render
function, I would just get a warning about Underscore not being found. I don't think it's too big of leap to run bower install underscore
after seeing that message, but I'll leave it up to you!
from clndr.
Oh! Totally misunderstood. I've never used bower so I didn't know this was a thing. I looked around for 'conditional dependencies' in bower and all I could find was this bower feature request which didn't lead anywhere. Do you know of any other projects where this is an issue?
from clndr.
Not sure where else this might be happening...I'm no Bower expert :)
Honestly, I'd just remove Underscore from the bower.json file. If someone is using Bower it's easy enough to load Underscore for the default behavior. This is the strength of Bower.
from clndr.
This is what I'm thinking: #68
from clndr.
I suppose you'd remove it from clndr.jquery.json as well...
from clndr.
Thanks, I'm a little worried this leans too far in the direction of your use case... this change will cause an error (underscore missing) to anyone who has used clndr with bower that hasn't changed the templating engine. Since I haven't heard very much chatter about alternative templating engines, I think this is most people and it will be a pretty disruptive change.
I'm sensitive to this issue since many clndr users are new to web development and we don't want to make their lives any harder. I'd rather find a solution that involves specifying to bower that you want to ignore underscore as a dependency.
A separate bower configuration file that doesn't have the underscore dependency would be nice, so you would run bower install clndr-no-underscore
or some such thing.
I really appreciate your input and I hope you understand where I'm coming from!
from clndr.
Totally understand where you're coming from .
If you bump the release/version properly it shouldn't affect current users. I'd say it's still possible to do it at some point in the future—just document it in your changelog.
Either way, thanks for a solid plugin. Take care!
from clndr.
Related Issues (20)
- It's possible to move self.options.clickEvents.click.apply(self, [target]); after setting the selected date? HOT 2
- Previous and Next months appear. I just want to show the current month. HOT 5
- how can i translate month into chinese?
- Have multiple classes for an events such as a class for a bank holiday and school holiday class HOT 2
- Feature Request: Multi-day select HOT 1
- set month and year same time HOT 2
- "Na" being displayed instead of previous month's dates HOT 3
- Destroy Clndr In Internet Explorer IE 11 HOT 1
- Generating `daysOfTheWeek` array with only first character HOT 11
- Styling/CSS Not showing HOT 3
- Can I have the mini-calendar without the full calendar?
- Get clicked date in calander
- Drop jQuery dependency HOT 1
- How can I show current month in number?
- how can I stay the same month when returning back to this page HOT 1
- Usage docs should explain how to use eventsThisInterval HOT 1
- hi If I wants to change the calendar start day order from Sunday to Monday how can I change it HOT 2
- Improper translations with the localization features
- Initialization intervalEnd error with more than one month
- CLNDR2 released
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clndr.