Git Product home page Git Product logo

fractal's Introduction

Fractal plugin for Craft CMS 3.x

Fractal plugin for Craft 3

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project

  2. Then tell Composer to load the plugin:

    composer require ournameismud/fractal

  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Fractal.

Fractal Overview

Make use of the Fractal library in Craft 3

Credits & Special Thanks

Credit allmarkedup for original Fractal component loader plugin for Craft cms

Special thanks to contributors - @jmcgaha

fractal's People

Contributors

rjgux avatar laneigemud1990 avatar

Stargazers

Sean P. Myrick V19.1.7.2 avatar Antonio Matera avatar Chris Chapman avatar  avatar Max Fenton avatar Tom Davies avatar Michael Roper avatar  avatar Mark Croxton avatar Alex Carpenter avatar Hendrik Werner avatar Dave Stockley avatar Thomas Eckhardt avatar  avatar

Watchers

Andrea avatar James Cloos avatar Cole Henley avatar David Wood avatar  avatar Sean P. Myrick V19.1.7.2 avatar

fractal's Issues

Fractal + WordPress

Any suggestion how to use Fractal with WordPress (within Timber library which adds twig support to WordPress tamplates)? I'm not developer :)

I wan't to use Fractal for making components and use this components in WordPress templates with custom data. I think your solution for Craft CMS have same logic, but I don't know how to port it to WordPress...

Thanks for any advice ❤️

Unknown Property craft\web\Application::templates

Looks like a bug in the exists method of the FractalTemplateLoader class:

return Craft::$app->templates->doesTemplateExist($name);
should be
return Craft::$app->getView()->doesTemplateExist($name);

Don't load for CP Requests

I'm finding a few plugins which load twig templates in the CP which are conflicting with this module. It seems like an easy enough solution would be to not load FractalTemplateLoader in the CP since it's really only for front-end requests anyway.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.