def test_loadyaml_static(): my_alert = ly("tests/assets/yaml_components/red_alert.yml", static=True) your_alert = e.div()( e.span("boolattr", style="background-color: red", class_="alert")("This is an Alert"), e.i(class_="horror")("{{!}}"), ) assert my_alert == your_alert
description="htmldoom integration for Flask", ), plugin( title="pyramid_htmldoom", href="https://github.com/sayanarijit/pyramid_htmldoom", description="htmldoom rendering library plugin for Pyramid", ), ), ), e.p()( e.h2()("Contributing"), e.p()( "Check out the ", e. a(href= "https://github.com/sayanarijit/htmldoom/tree/master/CONTRIBUTING.md" )(" contributing guidelines."), ), ), e.p()( e.i()("NOTE: This file was generated using "), e. a(href= "https://github.com/sayanarijit/htmldoom/blob/master/examples/readme.py" )(e.i()("this script.")), ), ) if __name__ == "__main__": print(render(*readme))
def test_components_composite_tag_vals(): my_tag = ly(YAML_COMPONENTS, "composite_tag.with_nested_tag") your_tag = composite_tag("sometag")(class_="row")(e.i()("val")) assert my_tag == your_tag
e.li()(e.a(href="/careers#benefits")("Benefits")), e.li()(e.a(href="/careers#open-jobs")("Open Jobs")), ), ), e.div(class_="col-md")( e.h6()(e.a(href="/contact")("Contact")), e.ul(class_="list-unstyled")( e.li()(e.a(href="/contact#support")("Support")), e.li()(e.a(href="/contact#address")("Address")), e.li()(e.a(href="/legal/privacy")("Legal")), e.li(class_="social")( e.a( class_="mr-1", href="https://www.facebook.com/teamniteo", target="_blank", )(e.i(class_="fa fa-facebook-f")), e.a( class_="ml-1", href="https://twitter.com/teamniteo", target="_blank", )(e.i(class_="fa fa-twitter")), ), ), ), ), e.div( class_="row h-100 justify-content-center align-items-center mt-4")( e.p()(e.small()("© 2007 - 2019 Niteo "))), )), b.comment(" END FOOTER "), e.script(src="https://niteo.co/static_niteo_co/main.js"),