Suggestion #28438

Viewhelper to add Javascript to <head>

Added by Marco Huber over 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Start date:
2011-07-24
Due date:
% Done:

0%

Estimated time:
Has patch:
Tags:

Description

Put your Javascript to the <head>

As soon as I'm allowed to I will commit it to the repository.

= Examples =

<f:js> var myJavascriptVar; myJavascriptFunction(); </f:js>
<output>
<script type="text/javascript">
var myJavascriptVar;
myJavascriptFunction();
</script>
</output> <f:js path="path/to/my/javascript.js" />
<output>
<script type="text/javascript" src="path/to/my/javascript.js"></script>
</output>

Files

JsViewHelper.zip (2.25 KB) JsViewHelper.zip Marco Huber, 2011-07-24 23:34

Also available in: Atom PDF