Shopify / Shopify/liquid

Question / Feature: Different filesystems

Open
#1,495 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

(Hi! This is somewhere between a question and a feature request. I hope that's okay)

I have a ruby app, and we use Liquid for template handling. (Thanks!)

I've now found that I want to support something like partials in my templates. But, I want to use different partials for different templates. I'm trying to figure out how. I think the docs suggest I do something like Liquid:: Template.file_system = ..., but from what I can tell, that's a global.

Is there a way to do that on a per template basis?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Liquid::Template.file_system documentation and source to understand how the current filesystem is configured. Determine whether template-specific partial lookup is supported and define the expected per-template behavior before considering implementation or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.