Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

returned tags customizations #32

Open
radum opened this issue Feb 12, 2015 · 0 comments
Open

returned tags customizations #32

radum opened this issue Feb 12, 2015 · 0 comments

Comments

@radum
Copy link

radum commented Feb 12, 2015

There are some cases where the <link> tag needs to be self closed <link rel="stylesheet" href="foo.css"/>

I know it's stupid but they are, and I was wondering if we can customize the ref template in the script using options.

if(attbs) {
  ref = '<link rel="stylesheet" href="' + target + '" ' + attbs + '>';
} else {
  ref = '<link rel="stylesheet" href="' + target + '">';
}

Basically the above code will be the default, but if we send a custom template it should use that one. And this should cover all cases I think where you need to manipulate the returned tag. For me being that / at the end.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant