net.liftmodules.FoBo.snippet.FoBo
Snippet Params:
Snippet Params:
Example
<link data-lift="FoBo.Resources.injectCSS?resources=bootstrap,bootstrap-theme,font-awesome,ng-grid,prettify"></link>
Result: This example will result in the following being injected in place of the snippet invocation:
<link href="/classpath/fobo/bootstrap.css" rel="stylesheet" type="text/css" /> <link href="/classpath/fobo/bootstrap-theme.css" rel="stylesheet" type="text/css" /> <link href="/classpath/fobo/font-awesome.css" rel="stylesheet" type="text/css"/> <link href="/classpath/fobo/ng-grid.css" rel="stylesheet" type="text/css" /> <link href="/classpath/fobo/prettify.css" rel="stylesheet" type="text/css" />
v1.3
Snippet Params:
Snippet Params:
Example
<script data-lift="FoBo.Resources.injectJS?resources=prettify,lang-scala,jquery,bootstrap,angular,angular-animate,ui-bootstrap-tpls,ng-grid"></script>
Result: This example will result in the following being injected in place of the snippet invocation:
<script src="/classpath/fobo/prettify.js" type="text/javascript"></script> <script src="/classpath/fobo/lang-scala.js" type="text/javascript"></script> <script src="/classpath/fobo/jquery.js" type="text/javascript"></script> <script src="/classpath/fobo/bootstrap.js" type="text/javascript"></script> <script src="/classpath/fobo/angular.js" type="text/javascript"></script> <script src="/classpath/fobo/angular-animate.js" type="text/javascript"></script> <script src="/classpath/fobo/ui-bootstrap-tpls.js" type="text/javascript"></script> <script src="/classpath/fobo/ng-grid.js" type="text/javascript"></script>
v1.3
Resources Snippet
This snippet class lets you inject FoBo resources into your templates. Instead of hand write the resource tags you can use this helper snippet to inject it for you.
Example Invoke with
data-lift="FoBo.Resources.functionName?paramName=paramValue&...."
For more examples see the individual transform functions.
v1.3