Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a set of HTML files that I'd like to bundle into and access from Javascript.
For my Rails project I use the haml_coffee_assets gem. This gem generates a Javascript JST object that includes my templates. I can refer to a template, in Javascript, using
JST['template_name']()
This approach is very convenient because I can have a standalone Javascript file that includes everything.
Are there such tools for Python projects? A stand-alone tool? Something for Flask? Something for Django? I can write a stand-alone tool easily, but it'd be nice if something has already done this. Quick google search didn't return anything.
Thanks.
I believe what you are looking is called webassets. There is also a wrapper for Flask called Flask-Assets.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have to build a webservice in order to send a webpage to some others websites.
Theses websites will integrate this webpage inside another one.
I have to send the assets separetely from the webpage.
For performances issues, I musn't use AJAX requests.
One of my javascript files, need businness data in order to display and validate form fields according to complex business rules (Administration).
So far I'm using a "js.twig" template, so I can easily add my data to my script.
However, I'm asked to minify this file (performance and intellectual property).
How can I minify my file "on the fly" ?
Update :
I'm not asking for a tool. I already have one. I need leads about calling a "minifyier on the fly". Filo gave a pretty good on the subject.
probably this answer can help you:
https://stackoverflow.com/a/15947488/3625883
If you want a library in pure php to perform the compression, you can use https://code.google.com/p/minify/
For installation:
add in composer.json
"mrclay/minify": "2.2.0"
Then you can use Assetic filter: jsminplus (https://github.com/jbroadway/assetic/blob/master/lib/JSMinPlus.php )
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I use multiple javascript libraries, such as bootstrap, jquery, knockout and etc. Every time I start a new project, I have to add them manually to my layout page. It annoys me even its once per project. Nuget packager has been helpful for doing this. But as I use more libraries, nuget packager no longer fits my needs. So I'm looking for a better solution. My question is: Is there a place or visual studio plugin that can help me adding the popular and latest javascript libraries mentioned above?
I always use CDNs. That way from one project to the next, I just need the same links in my html to get the same resources. Here is a good resource.
Javascripts CDN
Example code:
<script src="//cdnjs.cloudflare.com/ajax/libs/knockout/3.1.0/knockout-min.js"></script>
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a node.js sandbox with :
-User managment (Auth (like the module passport here), access control
-Form managment with controls like helpers
-Crud/scaffold generator (Add, Edit, Update, Delete etc...)
-Using MVC architecture, like a framework
Thanks !
I don't really think there will be such a framework does all the work for you prepackaged, but I think something that is very similar or close to what you want would be:
Sails.js
AngularJS
Personally I would say SailsJS would be something you want.
I don't really want to list things that it's mentioned on their site but I'm sure you will find that is what you are going to be using.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am currently working on some client - server app. I need to make auth process more secure, so I want to use TOTP. Client app is written in phonegab, so I need some stable and reliable library for javascript. I have found some on github, and aerogear-otp-js from jBoss Community.
Aerogear-otp-js looks good, but its only initial release so I do not think that's good idea to use it productional enviroment. Also I need to setup interval beetween keys,and that is not an option in aerogear. So can you recommend me some good library?
I'm one of the AeroGear JS devs. The JS OTP lib is just getting started, but we have both Android and iOS libs that are more mature and since you are using cordova/phonegap it's possible to create a plugin to access the native libs until the JS version is a bit more solid.
-Luke
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to automatically check the style of javascript sources written by different people. Do you know of a good tool to do it? Integration with emacs would be a plus. Thank you in advance.
See EditorConfig. This tool is not limited to js though; You first install the plugin for your editor (there is an emacs plugin), and create a file named .editorconfig, whose content is the coding style.
I've recently updated the CodePainter project to work tightly with EditorConfig, so you can get the best of both worlds with JavaScript.
Please, spread the word. The project could use more traction and I could use more help.
Google JavaScript pretty print and JavaScript lint. Plenty of options, including JavaScript Lint and JSLint, among others.
There's also JSHint which has libraries for Rhino, JavaScriptCore, Windows Script Host and Ruby.
You're probably looking for the JS Code Sniffer: https://npmjs.org/package/jscodesniffer#a-standard