Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
/ primera-lib Public archive

The library that powers the Primera WordPress theme.

License

Notifications You must be signed in to change notification settings

marcwiest/primera-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primera Package

Funtional, but currently under development. This package is part of the Primera WordPress theme.

For an integration example please see https://github.com/gooddaywp/primera#readme.

// Init:
primera([
    'viewsDir' => get_theme_file_path('source/views/'),
    'cacheDir' => trailingslashit(wp_get_upload_dir()['basedir']).'blade-cache',
]);

// Add Blade component alias:
primera('blade')->component('components.navbar');

// Rendering views via AJAX:
primera('blade')->render($templateName, $dataArr);

For local development integrate the following settings into your theme's composer.json file.

{
    "require": {
        "gooddaywp/primera-lib": "@dev"
    },
    "repositories": {
        "dev-package": {
            "type": "path",
            "url": "~/code/primera-lib",
            "options": {
                "symlink": true
            }
        }
    }
}

About

The library that powers the Primera WordPress theme.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages