0.0
No release in over a year
Integrates Axlsx with Tilt
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.0
>= 0
~> 2.10.0
~> 1.23.0

Runtime

>= 3.0
>= 1.4, < 3.0
 Project Readme

tilt-caxlsx

Gem Version Tests

Adds support for rendering Caxlsx templates using Tilt.

Installation

Add this line to your application's Gemfile:

gem 'tilt-caxlsx'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tilt-caxlsx

Usage

Create a template with the .xlsx or .axlsx extension. Use xlsx_package variable to create your spreadsheet:

wb = xlsx_package.workbook
wb.add_worksheet(name: "Users") do |sheet|
 sheet.add_row ["ID", "Email", "Full Name"]
  @users.each do |user|
    sheet.add_row [user.id, user.email, user.full_name]
  end
end

Contributing

  1. Fork it
  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 new Pull Request