Render is a powerful open-source tool designed to simplify the process of creating elegant documents in code. With Render, you can effortlessly generate PDFs, Word documents, and HTML files by leveraging the power of the Swift programming language. Whether you need to generate reports, invoices, or dynamic content, Render has got you covered.
Key Features
Templating Engine
- Utilize a high-level templating engine to easily construct sophisticated document templates.
- Integrate with various data sources, such as SQLite or JSON, to populate your documents dynamically.
Powerful API
- Enjoy a user-friendly API that allows you to effortlessly generate documents and customize them to your specific needs.
- Manipulate document elements with ease – from headers and footers to tables, images, and text styling.
Multiple Output Formats
- Generate documents in various formats, including PDF, Word, and HTML, adapted for a wide range of use cases.
- Choose the output format that best suits your requirements and effortlessly export your documents.
Extensibility and Integrations
- Extend Render with custom elements and functionality to meet your specific document generation needs.
- Integration with existing frameworks and libraries, such as SwiftUI and Combine, allows for seamless workflow integration.
Getting Started
Installation
- Include Render in your project by adding it as a dependency in your
Package.swift
file: - Build your project to fetch the Render package:
- Import Render in your Swift code:
dependencies: [ .package(url: "https://github.com//Render.git", .upToNextMajor(from: "0.9.0")) ]
$ swift build
import Render
Basic Usage
To start generating documents with Render, follow these simple steps:
- Create a template using Render’s intuitive templating engine.
- Provide the necessary data to populate the template.
- Render the template to generate the desired output format.
// Example code snippet let template = """Welcome to Render!
""" let document = try RenderDocument(template: template) let html = try document.renderAsHTML()
Documentation
API Reference
Visit the /Render/docs”>API Reference for detailed information on Render’s classes and methods.
Examples
Explore the collection of /Render/examples”>examples showcasing Render’s capabilities and providing useful demonstrations.
Community and Support
Discussion Forum
Join the Render community in the Discussion Forum to ask questions, share ideas, and connect with fellow developers.
Issue Tracker
Report any issues or suggest improvements on Render’s /Render/issues”>Issue Tracker to help us enhance the tool further.
Follow us on “>Twitter for the latest news, updates, and announcements regarding Render.
Contribution Guidelines
Contributions to Render are highly appreciated! To contribute, please follow the guidelines outlined in our /Render/contributing”>Contribution Guide.
License
Render is released under the MIT License. See the /Render/blob/main/LICENSE”>LICENSE file for more details.