GithubHelp home page GithubHelp logo

Comments (4)

kamsar avatar kamsar commented on August 17, 2024

Yes that is incorrect. I will patch the docs. Thanks!

On Oct 20, 2014, at 4:55 AM, Markus Ullmark [email protected] wrote:

Hi,
I am trying out Synthesis, very nice work, however I tried adding Items synthesis-style, but found that it didn't work.

from readme;

// add a new subitem
var editing = foo.Add("Hello world");
But it seems that, that function requires a concrete class (from the code);
https://github.com/kamsar/Synthesis/blob/master/Source/Synthesis/StandardTemplateItem.cs#L405


Reply to this email directly or view it on GitHub.

from synthesis.

ullmark avatar ullmark commented on August 17, 2024

Is there a way to make it work with interface? Since the concrete classes doesn't have a constructor testing aren't possible when using that .Add<T> function.

the interfaces also contain the template ID but in an attribute. Or you could use convention to find the correct concrete. I might just submit a PR.

from synthesis.

ullmark avatar ullmark commented on August 17, 2024

empty constructor that is...

from synthesis.

kamsar avatar kamsar commented on August 17, 2024

If you're interested in having .Add lookup the template off an interface
attribute, that'd be a great idea.

On Tue, Oct 21, 2014 at 12:22 AM, Markus Ullmark [email protected]
wrote:

empty constructor that is...


Reply to this email directly or view it on GitHub
#10 (comment).

from synthesis.

Related Issues (20)

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.