Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

charafau/htmltojaspr

Repository files navigation

The htmltojaspr project is a tool designed to convert HTML code into Dart code compatible with the Jaspr framework, enabling developers to seamlessly integrate HTML structures into their Jaspr applications.

Features

  • HTML to Jaspr Conversion: Transforms standard HTML elements into their corresponding Jaspr components.

Getting Started

Prerequisites

  • Ensure you have Dart SDK installed on your system.

Usage

To convert an HTML string to a Jaspr component:

Hello, World!

This is a sample HTML content.

'''; final jasprComponent = HtmlConverter().covert(htmlContent); print(jasprComponent); }">import 'package:htmltojaspr/htmltojaspr.dart';

void main() {
String htmlContent = '''

Hello, World!


This is a sample HTML content.



''';

final jasprComponent = HtmlConverter().covert(htmlContent);
print(jasprComponent);
}

This will output Dart code that represents the provided HTML structure as Jaspr components.

Additional Information

  • Contributing: Contributions are welcome! Please submit issues and pull requests on the GitHub repository.

  • License: This project is licensed under the BSD-3-Clause License. See the LICENSE file for details.

For more details and updates, visit the GitHub repository.

About

html to dart jaspr converter

Topics

Resources

Readme

License

BSD-3-Clause license

Stars

Watchers

Forks

Packages

Contributors