Skip to content
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

assets/templates not found #43

Closed
ktamilvanan opened this issue Jul 7, 2015 · 2 comments
Closed

assets/templates not found #43

ktamilvanan opened this issue Jul 7, 2015 · 2 comments

Comments

@ktamilvanan
Copy link

I have placed the assets/templates at the root of my application. I see an empty page being loaded but no request to the server is sent.

There is an error on the console, assets/templates/ Failed to load resource: the server responded with a status of 404 (Not Found) but the folder is there.
capture

@Vikas-Stormy
Copy link

you have to place that in frameworks default search for the files . and given that fodler location in you template . if you use gulp then this modifications should be compiled there also
feel free to ask ..

@joni2back
Copy link
Owner

Hi @ktamilvanan , to change the templates folder, you need to do the following:

Edit assets/js/config.js and gulpfile.js, then define the path in tplPath variable.
The changes should be like this...

diff --git a/assets/js/config.js b/assets/js/config.js
index e79e536..a57b11f 100644
--- a/assets/js/config.js
+++ b/assets/js/config.js
@@ -35,6 +35,6 @@
         isImageFilePattern: /\.(jpe?g|gif|bmp|png|svg|tiff?)$/i,
         isExtractableFilePattern: /\.(gz|tar|rar|g?zip)$/i,
-        tplPath: 'assets/templates'
+        tplPath: 'NEW/TEMPLATE/PATH'
     });
 })(angular);
diff --git a/gulpfile.js b/gulpfile.js
index 0e4e0d1..5f713b5 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -12,7 +12,7 @@ var path = require('path');
 var src = 'assets/';
 var dst = 'dist/';
-var tplPath = 'assets/templates' //must be same as fileManagerConfig.tplPath
+var tplPath = 'NEW/TEMPLATE/PATH' //must be same as fileManagerConfig.tplPath

So, after that, you must run gulp build in the console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants