Snippet Params:
Snippet Params:
Example
<link data-lift="FoBo.BS3Resources.injectCSS?resources=bootstrap,bootstrap-theme"></link>
or making bootstrap.css implicit.
<link data-lift="FoBo.BS3Resources.injectCSS?resources=bootstrap-theme"></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" />
v1.3
Snippet Params:
Snippet Params:
Example
<script data-lift="FoBo.BS3Resources.injectJS?resources=bootstrap"></script>
or making bootstrap.js implicit.
<script data-lift="FoBo.BS3Resources.injectJS"></script>
Result: This example will result in the following being injected in place of the snippet invocation:
<script src="/classpath/fobo/bootstrap.js" type="text/javascript"></script>
v1.3
BS3Resources Snippet
This snippet class lets you inject FoBo Bootstrap3 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.BS3Resources.functionName?paramName=paramValue&...."
For more examples see the individual transform functions.
v1.3