Coder Social home page Coder Social logo

Comments (6)

peanball avatar peanball commented on August 18, 2024 1

I will consider this as "alternative mode", e.g. with a different template identifier -> :lookup_handlebars?

from logseq-dynamic-lookup.

peanball avatar peanball commented on August 18, 2024

Some thoughts / notes:

  1. moustache has {{ }} as delimiters, same as the placeholders in logseq. Need to check if the arguments can be quoted reliably, or escaped otherwise.
  2. currently I retrieve the page properties, nothing else. This needs to be extended, e.g. to support the page metadata retrieval. There might be an ultimately more performant way to do that than the advanced query used now.

from logseq-dynamic-lookup.

stdword avatar stdword commented on August 18, 2024
  1. Mustache just an example of idea. May there is another template-language without quoting problems.
  2. May be you could add a page name to context? It may be taken from renderer params

from logseq-dynamic-lookup.

peanball avatar peanball commented on August 18, 2024

I'm considering other languages or to create a very basic expression "language" myself.

I'm also considering a way to get and expose the properties in a way that looks natural to Logseq (or maybe it's source code).

Adding the "target" renderer parameter as variable is a good idea either way, could be useful for fallback expressions too.

Either way, I should find some time to work on this before the end of this year.

from logseq-dynamic-lookup.

stdword avatar stdword commented on August 18, 2024

Sounds very interesting 🔥

from logseq-dynamic-lookup.

stdword avatar stdword commented on August 18, 2024

Hi, @peanball !

Since that time I've created 🏛 Full House Templates plugin which completely covers my request.

Take a look — you may like it ❤️

from logseq-dynamic-lookup.

Related Issues (3)

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.