Class: HtmlProto

Inherits:
Generator show all
Defined in:
lib/generators/html_proto.rb

Instance Method Summary collapse

Methods inherited from Generator

#initialize, #make_dir, #make_file, #post_install, #pre_install

Constructor Details

This class inherits a constructor from Generator

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/generators/html_proto.rb', line 4

def run
  make_file("index.html") {
%Q|<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery.min.js"></script>
<script src="js/app.js"></script>
</head>
<body>
</body>
</html>|
  }


  make_dir("js")
  make_dir("css")

  make_file("js/app.js")
  make_file("css/style.css")
end