<commit_before># Jabverwock
Experiment; Integrate HTML, CSS, Javascript

## What is the Jabverwock?
Jabverwock is open source project to make web page using Ruby.

That mean "Do not use HTML, CSS, JS (if possible)".


## Installation

Add this line to your application's Gemfile:

```ruby
gem 'jabverwock'
```

## How to use

### Simple example

export html file, which write on only `<!DOCTYPE html>`

file name is `n` and file path is `~/path`

 ```ruby
 doc = DOCTYPE.new
 doc.pressConfig(name: n, dist: ~/path/)
 doc.press
 ```
> [result]
>>     <!DOCTYPE html>

### => press

press command(cmd) export html ( css,  js ) generated by ruby.


+ pressConfig (name: name, dist: path)
	+ 	name: file name
	+ dist: path of file

+ press
	+ press command need pressConfig		


pressTo cmd is more simple.

+ pressTo (name: name, dist: dist)
	+ name: file name
	+ dist: path of file	

 ```ruby
	doc.pressTo(name: n, dist: ~/path)
 ```
 
 <br>

---
### Then, Hello world
	
Tag make by new cmd (e.g. HTML tag).
 
 ```ruby
  HTML.new
 ```
 
<br>
Say 'Hello world'
	
	
```ruby
html= HTML.new
head = HEAD.new
  
title = TITLE.new
title.content = "This is my first page"
head.addChild title
  
body = BODY.new
c = P.new.contentIs "Hello world!" 
body.addChild c

html.addChild head
html.addChild body
  
doc = DOCTYPE.new
doc.addMember html
  
doc.pressTo(name: 'indexPressed.html', dist: myPATH)

```

>[result]
>>```html
>>	<!DOCTYPE html>
>>	<html>
>>		<head>
>>			<title>This is my first page</title>
>>		</head>
>>		<body>
>>			<p>Hello world!</p> 
>>		</body>
>>	</html>
>>```

### => content
content cmd express content of the tag.

 ```ruby
	pp = P.new
	pp.content = "Hello world!"

or

	pp = P.new.contentIs "Hello world!" 
	  
 ```
>[result]
>>```html
>>	<p>Hwllow world!</p>
>>```

### => addChild (addChildren)
addChild cmd express structure of HTML.

 ```ruby
	html.addChild head
 ```
>[result]
>>```html
>>	<html>
>>		<head>
>>		</head>
>>	</html>
>>```


### => addMember (addMembers)
addMember cmd express structure of HTML.
 ```ruby
	html.addMember head
 ```
>[result]
>>```html
>>	<html>
>>	</html>
>>	<head>
>>	</head>
>>```


## License
Jabverwock is distributed under MIT license.

Copyright (c) 2016 <NAME>
<commit_msg>wiki link add in README<commit_after># Jabverwock
Experiment; Integrate HTML, CSS, Javascript

## What is the Jabverwock?
Jabverwock is open source project to make web page using Ruby.

That mean "Do not use HTML, CSS, JS (if possible)".


## Installation

Add this line to your application's Gemfile:

```ruby
gem 'jabverwock'
```

## How to use

### Simple example

export html file, which write on only `<!DOCTYPE html>`

file name is `n` and file path is `~/path`

 ```ruby
 doc = DOCTYPE.new
 doc.pressConfig(name: n, dist: ~/path/)
 doc.press
 ```
> [result]
>>     <!DOCTYPE html>

### => press

press command(cmd) export html ( css,  js ) generated by ruby.


+ pressConfig (name: name, dist: path)
	+ 	name: file name
	+ dist: path of file

+ press
	+ press command need pressConfig		


pressTo cmd is more simple.

+ pressTo (name: name, dist: dist)
	+ name: file name
	+ dist: path of file	

 ```ruby
	doc.pressTo(name: n, dist: ~/path)
 ```
 
 <br>

---
### Then, Hello world
	
Tag make by new cmd (e.g. HTML tag).
 
 ```ruby
  HTML.new
 ```
 
<br>
Say 'Hello world'
	
	
```ruby
html= HTML.new
head = HEAD.new
  
title = TITLE.new
title.content = "This is my first page"
head.addChild title
  
body = BODY.new
c = P.new.contentIs "Hello world!" 
body.addChild c

html.addChild head
html.addChild body
  
doc = DOCTYPE.new
doc.addMember html
  
doc.pressTo(name: 'indexPressed.html', dist: myPATH)

```

>[result]
>>```html
>>	<!DOCTYPE html>
>>	<html>
>>		<head>
>>			<title>This is my first page</title>
>>		</head>
>>		<body>
>>			<p>Hello world!</p> 
>>		</body>
>>	</html>
>>```

### => content
content cmd express content of the tag.

 ```ruby
	pp = P.new
	pp.content = "Hello world!"

or

	pp = P.new.contentIs "Hello world!" 
	  
 ```
>[result]
>>```html
>>	<p>Hwllow world!</p>
>>```

### => addChild (addChildren)
addChild cmd express structure of HTML.

 ```ruby
	html.addChild head
 ```
>[result]
>>```html
>>	<html>
>>		<head>
>>		</head>
>>	</html>
>>```


### => addMember (addMembers)
addMember cmd express structure of HTML.
 ```ruby
	html.addMember head
 ```
>[result]
>>```html
>>	<html>
>>	</html>
>>	<head>
>>	</head>
>>```

## Usage
More detailed usage instructions are provided in the [Wiki](https://github.com/object-kazu/Jabverwock/wiki).

## License
Jabverwock is distributed under MIT license.

Copyright (c) 2016 <NAME>

{'fraction_non_alphanumeric': 0.17363834422657953, 'fraction_numerical': 0.0017429193899782135, 'mean_word_length': 3.4921722113502933, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 181, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1901538', 'n_tokens_mistral': 1834, 'n_tokens_neox': 1711, 'n_words': 542}