angularjs nie może znaleźć katalogu szablonów, kolba jako backend
Używam kolby jako backendu i angularjs po stronie klienta
moja struktura katalogów:
rosa:
->app.py
->templates
->hello.html
->test.html
->static
->js
->directives.py
->lib
->angular.js
mój plik app.py:
from flask import Flask, make_response,render_template
@app.route("/aboutUs")
def aboutUs():
return render_template("test.html", title="test page")
mój plik directives.py:
angular.module('components',[])
.directive("helloWorld",function($scope,$log){
$scope.$log = $log;
return{
restrict:"A",
templateUrl:"templates/hello.html"
}
})
angular.module('testApp',['components'])
Flask był w stanie poprawnie renderować szablon test.html, ale kątowy pokazywał hello.html, błąd nie znaleziono szablonu