How to use the lucidity.Template.ANCHOR_START function in Lucidity

To help you get started, we’ve selected a few Lucidity examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 4degrees / lucidity / test / unit / View on Github external
    ('/static/value/extra', Template.ANCHOR_START, True),
    ('/static/', Template.ANCHOR_START, False),
    ('/extra/static/value', Template.ANCHOR_END, True),
    ('/static/value/extra', Template.ANCHOR_END, False),
    ('/static/value', Template.ANCHOR_BOTH, True),
    ('extra/static/value', Template.ANCHOR_BOTH, False),
    ('/static/value/extra', Template.ANCHOR_BOTH, False),
    ('extra/static/value/extra', None, True),
    ('extra/non/matching/extra', None, False)
], ids=[
    'anchor_start:matching string',
    'anchor_start:non-matching string',
    'anchor_end:matching string',
    'anchor_end:non-matching string',
    'anchor_both:matching string',
    'anchor_both:non-matching string prefix',
    'anchor_both:non-matching string suffix',