Giter VIP home page Giter VIP logo

litehtml's Introduction

litehtml

This repository contains Primate Labs' fork of litehtml. litehtml is a lightweight HTML5 rendering engine with CSS3 support.

litehtml Build Prerequisites

  • Python 3.7 or later
  • CMake 3.12 or later
  • C++14 compiler

Building litehtml

litehtml uses CMake as its build system. Build litehtml on macOS or Linux by executing the following commands from the source directory using the terminal:

mkdir build
cd build
cmake ..
make

You can also build and run the litehtml unit tests by executing the following command from the build directory using the terminal:

make test

litehtml Goals

TODO

headless

litehtml includes headless, a simple headless web browser (i.e., a web browser without a graphical user interface). headless downloads web pages and save the rendered output to a PNG file.

headless demonstrates how to use litehtml and integrate it into an application. headless also provides a quick and convenient way to test litehtml against arbitrary web pages.

headless Build Prerequisites

  • Python 3.7 or later
  • CMake 3.12 or later
  • C++14 compiler
  • Libraries
    • fmt
    • fontconfig
    • freetype2
    • libcurl
    • libpng
    • libjpeg

On Ubuntu the easiest way to install the prerequisites is with the following command:

sudo apt install libcurl4-openssl-dev \
    libfmt-dev \
    libfontconfig-dev \
    libjpeg-dev \
    libpng-dev

Building headless

headless also uses CMake as its build system. Build litehtml on macOS or Linux by executing the following commands from the terminal:

git submodule init
git submodule update
mkdir build
cd build
cmake .. -DBUILD_HEADLESS=1
make

litehtml's People

Contributors

346184 avatar adamfowleruk avatar arkarit avatar bigfatbrowncat avatar cristianadam avatar e4z9 avatar eigenwhat avatar feliwir avatar fpw avatar gogoprog avatar great90 avatar jeroendeswaef avatar jfpoole avatar joesingo avatar kkoehne avatar kuzmas avatar lexxmark avatar manisandro avatar nikitafeodonit avatar nuclearcookie avatar readmecritic avatar tordex avatar vinzenz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.