We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a97249 commit e7642f7Copy full SHA for e7642f7
frontend/encore/simple-example.rst
@@ -96,7 +96,6 @@ In Symfony, use the ``asset()`` helper:
96
<link rel="stylesheet" href="{{ asset('build/global.css') }}">
97
</head>
98
<body>
99
- <h1></h1>
100
<!-- ... -->
101
<script src="{{ asset('build/app.js') }}"></script>
102
</body>
@@ -135,7 +134,7 @@ Great! Use ``require()`` to import ``jquery`` and ``greet.js``:
135
134
var greet = require('./greet');
136
137
$(document).ready(function() {
138
- $('h1').html(greet('john'));
+ $('body').prepend('<h1>'+greet('john')+'</h1>');
139
});
140
141
That's it! When you build your assets, jQuery and ``greet.js`` will automatically
0 commit comments