*Dirk Krause solution did work for me but not very well, angularjs had some 
issues. *Now massimo's suggestion worked perfectly.


Here is what I did.....


views/default/index.html*
<!DOCTYPE html>
<html ng-app>
  <head>
    <title>Bootstrap 101 Template</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <!-- Global CSS and JS Include -->
    {%include 'web2py_ajax.html'%}

    
    <script  type="text/javascript" >
    'use strict';

    /* Controllers */
    function PhoneListCtrl($scope) {
      $scope.phones = [
    {"name": "Nexus S",
    "snippet": "Fast just got faster with Nexus S."},
    {"name": "Motorola XOOMâ„¢ with Wi-Fi",
    "snippet": "The Next, Next Generation tablet."},
    {"name": "MOTOROLA XOOMâ„¢",
    "snippet": "The Next, Next Generation tablet."}
      ];
      
       $scope.name = '{%=message%}';
    }
    </script>

  </head>
    
  <body>
  <div ng-controller="PhoneListCtrl">
    <div class="btn-group">
      <button class="btn">{{name}}</button>
      <button class="btn">Middle</button>
      <button class="btn">Right</button>
    </div>
    
    
    <div class="row-fluid">
      <div class="span4"><h1>Hello, world!</h1></div>
      <div class="span8"><p>Nothing here {{'yet' + '!'}}</p> <p>1 + 2 = {{ 
1 + 2 }}</p></div>
    </div>
    
    <div class="container-fluid">
      <div class="row-fluid">
      
    <div class="span2">
      <!--Sidebar content-->
      Search: <input type="text" class="input-block-level" placeholder="" 
ng-model="query"/>
    </div>
    
    <div class="span10">
      <!--Body content-->
      <ul class="phones">
        <li ng-repeat="phone in phones | filter:query">
          {{phone.name}}
          <p>{{phone.snippet}}</p>
        </li>
      </ul>
    </div>
    
      </div>
    </div>

    </div>
  </body>
</html>



*views/web2py_ajax.html

{%
response.files.insert(3,URL('static','js/jquery.js'))
response.files.insert(3,URL('static','js/angular.js'))
response.files.insert(3,URL('static','js/bootstrap.min.js'))
response.files.append(URL('static','css/bootstrap.min.css'))
response.files.insert(3,URL('static','js/web2py.js'))
response.include_meta()
response.include_files()
%}


controllers/default.py

response.delimiters = ['{%', '%}']

def index():
  return dict(message="Hello from MyApp")



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to