-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths + Require.JS #852
Comments
in define call shouldn't ace point to |
Thanks, it works now. js/config/bootstrap.js require.config({
paths: {
// LIBRARIES
jquery: '../libs/jquery/jquery-loader',
underscore: '../libs/underscore/underscore-loader',
backbone: '../libs/backbone/backbone-loader',
mustache: '../libs/mustache/mustache',
ace: '../libs/ace/ace', view define([
'jquery',
'underscore',
'backbone',
'mustache',
'ace/ace'
], function(
$,
_,
Backbone,
Mustache,
ace
) {
/**
* VIEW
*/
var view = Backbone.View.extend({
root: "#content-view",
initialize: function() {
_.bindAll(this, 'render');
this.render();
},
render: function() {
var html = Mustache.render(template, this.data);
$(this.root).html(html);
this.data.editor = ace.edit("editor"); |
its not work |
I am learning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
first of all, thanks for developing Ace, it's really useful. I'm having some issues getting Ace work with require.js.
The "entry point" of my application is:
js/config/bootstrap.js
The project structure is:
How could I load the ace editor, something like:
Any help?
Thanks in advance
The text was updated successfully, but these errors were encountered: