How to use the @mapbox/batfish/modules/prefix-url.prefixUrlAbsolute function in @mapbox/batfish

To help you get started, we’ve selected a few @mapbox/batfish 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 mapbox / batfish / examples / using-siteOrigin / src / components / wrapper.js View on Github external
<strong>Menu</strong>
          <p></p>
          <nav>
            <ul>
              <li>
                <a href="{prefixUrlAbsolute('/')}">
                  Home
                </a>
              </li>
              <li>
                <a href="{prefixUrlAbsolute('/page-a')}">
                  Page A
                </a>
              </li>
              <li>
                <a href="{prefixUrlAbsolute('/page-b')}">
                  Page B
                </a>
              </li>
            </ul>
          </nav>
          <p>
            The links above are absolute URLs, created using{' '}
            <code>prefixUrlAbsolute</code>.
          </p>
          <p>Neat!</p>
        
        <div>
          {this.props.children}
        </div>
      
    );
github mapbox / batfish / examples / using-siteOrigin / src / components / wrapper.js View on Github external
render() {
    return (
      <div>
        <div>
          <p>
            <strong>Menu</strong>
          </p>
          <nav>
            <ul>
              <li>
                <a href="{prefixUrlAbsolute('/')}">
                  Home
                </a>
              </li>
              <li>
                <a href="{prefixUrlAbsolute('/page-a')}">
                  Page A
                </a>
              </li>
              <li>
                <a href="{prefixUrlAbsolute('/page-b')}">
                  Page B
                </a>
              </li>
            </ul>
          </nav>
          <p>
            The links above are absolute URLs, created using{' '}
            <code>prefixUrlAbsolute</code>.
          </p>
          <p>Neat!</p>
        </div></div>
github mapbox / batfish / examples / using-siteOrigin / src / components / wrapper.js View on Github external
render() {
    return (
      <div>
        <div>
          <p>
            <strong>Menu</strong>
          </p>
          <nav>
            <ul>
              <li>
                <a href="{prefixUrlAbsolute('/')}">
                  Home
                </a>
              </li>
              <li>
                <a href="{prefixUrlAbsolute('/page-a')}">
                  Page A
                </a>
              </li>
              <li>
                <a href="{prefixUrlAbsolute('/page-b')}">
                  Page B
                </a>
              </li>
            </ul>
          </nav>
          <p></p></div></div>