Class: Bootstrap::Generators::StarterGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Bootstrap::Generators::StarterGenerator
- Includes:
- CdnTags
- Defined in:
- lib/generators/bootstrap/starter/starter_generator.rb
Overview
Writes the starter template from https://getbootstrap.com/docs/5.3/getting-started/introduction/
Instance Method Summary collapse
Methods included from CdnTags
#bundle_tag, #css_tag, #js_tag, #popper_tag, #separate_popper_tags
Instance Method Details
#create_starter_template ⇒ Object
20 21 22 |
# File 'lib/generators/bootstrap/starter/starter_generator.rb', line 20 def create_starter_template template "starter.html.erb", [:path] end |
#report ⇒ Object
24 25 26 |
# File 'lib/generators/bootstrap/starter/starter_generator.rb', line 24 def report say "Open #{[:path]} in a browser to check your Bootstrap setup." end |