Sha256: 7787bd2e2274790ff5f17d8c1f6c874d4b0158f413fa8d5596ef479c425b7ac0

Contents?: true

Size: 287 Bytes

Versions: 58

Compression:

Stored size: 287 Bytes

Contents

// Run this example by adding <%%= javascript_pack_tag 'hello_erb' %> to the head of your layout file,
// like app/views/layouts/application.html.erb. Don't forget to uncomment erb tag after adding it to your layout file.

<% name = 'Erb' %>

console.log('Hello world from <%= name %>')

Version data entries

58 entries across 58 versions & 6 rubygems

Version Path
webpacker-4.0.1 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.8 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.7 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.6 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.5 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.4 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.3 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.2 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.rc.1 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.pre.3 lib/install/examples/erb/hello_erb.js.erb
webpacker-3.5.5 lib/install/examples/erb/hello_erb.js.erb
webpacker-3.5.3 lib/install/examples/erb/hello_erb.js.erb
webpacker-3.5.2 lib/install/examples/erb/hello_erb.js.erb
webpacker-3.5.1 lib/install/examples/erb/hello_erb.js.erb
webpacker-3.5.0 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.pre.pre.2 lib/install/examples/erb/hello_erb.js.erb
webpacker-4.0.0.pre.pre.1 lib/install/examples/erb/hello_erb.js.erb