<commit_before># sinatra-writeexcel
[![Build Status](https://travis-ci.org/linc01n/sinatra-writeexcel.svg?branch=master)](https://travis-ci.org/linc01n/sinatra-writeexcel)
[![Test Coverage](https://codeclimate.com/github/linc01n/sinatra-writeexcel/badges/coverage.svg)](https://codeclimate.com/github/linc01n/sinatra-writeexcel)
[![Dependency Status](https://gemnasium.com/linc01n/sinatra-writeexcel.svg)](https://gemnasium.com/linc01n/sinatra-writeexcel)


sinatra-writeexcel is a sinatra extension to add support for Excel rendering with [writeexcel](https://github.com/cxn03651/writeexcel) templates.

## Installation

Add this line to your application's Gemfile:

    gem 'sinatra-writeexcel'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sinatra-writeexcel

## Example

```ruby
require 'sinatra'
require 'sinatra/writeexcel'

get '/' do
  @text = "Hello World!"
  writeexcel :world
end
```

In `views/world.rxls`
```
worksheet = workbook.add_worksheet('Hello')
worksheet.write "A1", @text
```

##License

See LICENSE.txt

## Contributing

1. Fork it ( https://github.com/linc01n/sinatra-writeexcel/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>Add license link<commit_after># sinatra-writeexcel
[![Build Status](https://travis-ci.org/linc01n/sinatra-writeexcel.svg?branch=master)](https://travis-ci.org/linc01n/sinatra-writeexcel)
[![Test Coverage](https://codeclimate.com/github/linc01n/sinatra-writeexcel/badges/coverage.svg)](https://codeclimate.com/github/linc01n/sinatra-writeexcel)
[![Dependency Status](https://gemnasium.com/linc01n/sinatra-writeexcel.svg)](https://gemnasium.com/linc01n/sinatra-writeexcel)


sinatra-writeexcel is a sinatra extension to add support for Excel rendering with [writeexcel](https://github.com/cxn03651/writeexcel) templates.

## Installation

Add this line to your application's Gemfile:

    gem 'sinatra-writeexcel'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sinatra-writeexcel

## Example

```ruby
require 'sinatra'
require 'sinatra/writeexcel'

get '/' do
  @text = "Hello World!"
  writeexcel :world
end
```

In `views/world.rxls`
```
worksheet = workbook.add_worksheet('Hello')
worksheet.write "A1", @text
```

##License

See [LICENSE.txt](https://github.com/linc01n/sinatra-writeexcel/blob/master/LICENSE.txt)

## Contributing

1. Fork it ( https://github.com/linc01n/sinatra-writeexcel/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.14199288256227757, 'fraction_numerical': 0.018505338078291814, 'mean_word_length': 4.8930817610062896, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 17, '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': '2690047', 'n_tokens_mistral': 1028, 'n_tokens_neox': 976, 'n_words': 215}