Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archer

Embeddable HTML Parser, meant for Deoxys Browser Engine

How to use

Copy The Repo

Method 1(Recomended):

git submodule add https://github.com/pfmcodes/Archer.git Archer

Method 2:

git clone https://github.com/pfmcodes/Archer.git

Include and Use

Note: Archer does not rely any OS to run or for features(yet)

#include <Archer/Archer.h>
#include <iostream>

int main() {
    Archer::DOCUMENT doc; // document

    std::string html = "<h1>Hello, World!</h1>";
    Archer::parse(html, doc); // to parse an html file
    if (doc.root_element) {
        // create your positions for start
        float start_x = 10.0f;
        float start_y = 70.0f;
        // call your rendering function afterwards
    }

    std::string new_html = "<h1>Test</h1>";

    // to change or re-render the DOM
    doc::load_html(new_html)
}

Including in CMake

add_subdirectory(Archer)

About

Embeddable HTML Parser, meant for Deoxys Browser Engine

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages